ADSL Router mit Debian 3 Masquerade funzt net.
HI
Ich habe bisher immer meinen ADSl Router mit Suse betrieben. Doch leider hatte ich in letzter Zeit sehr viel ärger mit Suse und bin deshalb auf Debain umgestiegen. nachdem ich alles eingerichtet habe muss ich feststellen, dass irgendwie das Masqurding nicht funzt. Ich mache dies über iptables hier ein Ausschnitt aus dem Firewallscript:
#
echo "Starting Firewall"
#
#
#
#
# Load the Modul for FTP "ip_nat_ftp"
#
#
#/sbin/insmod ip_tables
#/sbin/insmod ip_conntrack
#/sbin/insmod iptable_nat
/sbin/insmod ipt_MASQUERADE
/sbin/insmod ip_nat_ftp
/sbin/insmod ip_conntrack_ftp
#
# Setting all to default
#
iptables -F
iptables -t nat -F
iptables -X
#
#
# Setting Masquerading for FORWARD
#
iptables -t nat -P POSTROUTING DROP
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j ACCEPT
#
#
# Setting the Chain INPUT to DROP
#
iptables -P INPUT DROP
#
#
# Setting the Chain for INPUT UDP port 53 to ACCEPT for LinuxServer
#
iptables -A INPUT -i ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth0 -j ACCEPT
#
#
# Setting the chain for OUTPUT
#
iptables -P OUTPUT DROP
#
#
iptables -A OUTPUT -o ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -o eth0 -j ACCEPT
[..]
das Routing funzt auf, und auch die Internet Verbindung steht nur kommen meine Clients nicht raus.
Kann mir einer Sagen was nicht stimmt?
Danke
Diabolo
|