Results 1 to 2 of 2
Hi, All.
I'm trying to configure routing via iptables on Debian Sarge 3.1r0. Client computers are on WinXP Pro SP2.
Used a shell script from http://www.linuxforum.com/linux_tutorials/89/1.php :
But its not ...
- 01-30-2006 #1Just Joined!
- Join Date
- Jan 2006
- Posts
- 2
Routing in Debian
Hi, All.
I'm trying to configure routing via iptables on Debian Sarge 3.1r0. Client computers are on WinXP Pro SP2.
Used a shell script from http://www.linuxforum.com/linux_tutorials/89/1.php:
But its not working...
Having 2 interfaces:
eth0 for LAN 10.0.0.0/24
eth1 for Internet connection 192.168.0.1
Also installed DHCP server, which works Okay(giving IPs, netmask - 255.255.255.254, gateway - 10.0.0.45 - server IP).
DNS server is installed(BIND), but probably doesn't work(added forwarders directive to named.conf with IPs of ISP DNSs).
Q1: Where the problem can be?
Q2: If I'm setting some rules via iptables, should I restart any service? inetd?
- 02-01-2006 #2Linux User
- Join Date
- Aug 2005
- Location
- Italy
- Posts
- 401
NAT rules
Code:echo -n "Create rules for POSTROUTING chain (nat): " $IPT -t nat -A POSTROUTING --out-interface ppp0 -j MASQUERADE echo "done.";

This is my only rule to do transparent natting.
You should also setup DNS server to forward DNS requests... but this is another trouble!
Try to ping an external IP... if everything goes well you should only setup your DNS.When using Windows, have you ever told "Ehi... do your business?"
Linux user #396597 (http://counter.li.org)


Reply With Quote
