routing/iptables problem
192.168.1.1 is default gateway and wireless router
192.168.1.254 is a wireless bridge 192.168.1.2 is a linux box configured as a router 192.168.0.1 is the linux box's other nic 192.168.0.21 is a DHCP host on the linux box's 0.x network From 0.21, I can ping 1.1: Code:
C:\>ping 192.168.1.1 Code:
# ping 192.168.0.21 Code:
Chain INPUT (policy ACCEPT) Code:
Kernel IP routing table Code:
# route Code:
Chain PREROUTING (policy ACCEPT 269K packets, 23M bytes) 1 |
hi mk,
this routing table on 1.1 is correct : Code:
192.168.0.0 192.168.1.2 255.255.255.0 UG 0 0 0 br0 Code:
Chain POSTROUTING (policy ACCEPT 918K packets, 48M bytes) so - to overcome this : you dont need to put MASQ rule - since your 1.1 router already have that 0.0/24 route. HTH. |
Quote:
Code:
matt@ltsp:~$ sudo iptables --flush Code:
# ping 192.168.0.1 |
hi mk,
Quote:
keep me update. HTH. |
Just out of curiosity, I added a static route on the wireless bridge (1.254) and tried to ping and it worked, but not from 1.1! WTF?!
Code:
# ifconfig br0 Code:
# ifconfig br0 |
Quote:
Code:
matt@ltsp:~$ iptables -L -v & iptables -L -v -t nat |
solved
whoops, i replied to the wrong thread. i can't find the delete thread button
|
All times are GMT -5. The time now is 03:30 PM. |