Fedora 9 as a router,..... problem =(
Hai,...
Hai, i have a problem with setting a fedora 9 as a router.
I have done the following:
1 comp (fedora) as a router, eth0=192.168.7.8, eth1=192.168.22.1.
1 comp as client of fedora, 192.168.22.2.
1 komputer sebagaicomp as a gateway, 192.168.7.1
i have made the connection, and made the following setting:
1. Set ip on eth0 & eth1 on the fedora
2. Set gateway = 192.168.7.1 (Windows comp as gateway)
3. Set NAT on iptables
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
for this one i've also try:
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.22.0/24 -j SNAT -to-source 192.168.7.8
4. Set ip forwarding on /etc/sysctl.conf
Af ter that, i can ping from 192.168.22.2 to 192.168.7.8 and juga 192.168.22.1.
But i can't ping from 192.168.22.2 to 192.168.7.1.
Is this normal? (why can't i ping to my gateway)
Is there anything wrong or missing on my setting?
Oh yea, i also already set the client gateway to 192.168.7.1, and then to 192.168.7.8, and then to 192.168.22.1.
(i tried all possibility).
Thx,
rabbi
|