[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

TDSL,LAN und Routing, ABE KEIN Internet



Ich habe zwei Rechner, die untereinander verbunden sind,und der eine an
TDSL angeschlossen ist. Den möchte ich als Router benutzen. Vom
Router(10.1.1.253) aus komme ich ins Internet und kann auch den anderen
Rechner (10.1.1.1) anpingen.Nur vom Client komme ich nicht ins Internet.
Ich habe mal meine Datei interfaces und die Firewall beigefügt.Ich
verwende Kernel 2.4.18.


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
	address 10.1.1.253
	netmask 255.255.255.0
	network 10.1.1.0
	broadcast 10.1.1.255
	gateway 10.0.0.254

auto eth1
iface eth1 inet static
	address 10.0.0.254
	netmask 255.255.255.0

Firewall:

#!/bin/sh


INTERFACE=ippp0


insmod ip_tables
insmod ip_conntrack
insmod ip_conntrack_ftp
insmod ipt_state
insmod iptable_nat
insmod ipt_MASQUERADE

iptables -F

iptables -N block
iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A block -m state --state NEW -i ! $INTERFACE -j ACCEPT
iptables -A block -j DROP

iptables -A INPUT -j block
iptables -A FORWARD -j block

iptables -A POSTROUTING -t nat -o $INTERFACE -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward

Gruß

Andreas






Reply to: