[lug] Re: Pls. help. Problem of IP tables.....
Finding 2
-------------
But If you don't give a default gate way for either of Workstations,
you cannot access one Network from the other. As an example if you
don't give default gateway for Workstation1, you cannot access it from
Workstation2 and vise versa only by kernel settings. In this situation
you need to have iptables. When Default Gate way Workstation1 is not IP
address of Firewall, What I did was give following commands to set IP
tables:
rm -f /etc/sysconfig/iptables
service iptables restart
service iptables restart
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -o eth1 -s 192.168.1.0/24 -d 0/0 -j
MASQUERADE
iptables -A FORWARD -t filter -o eth1 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -t filter -i eth1 -m state --state
ESTABLISHED,RELATED -j ACCEPT
service iptables save
service iptables start
Now you can access 192.168.0.0 Netowrk from 192.168.1.0 Network.
0 Comments:
Yorum Gönder
<< Home