OpenWRT routing
Bruce Dawson
jbd at codemeta.com
Fri Feb 10 12:35:01 EST 2006
I figured out a solution.
I needed to do the following:
# iptables -t filter -A FORWARD -p all -d 192.168.56.0/24 -j ACCEPT
Which had to be done on the router. (Looks like those routers are a bit
more secure with OpenWRT.)
After doing the above, I then discovered that I needed return routes set
on the remote network too! Duh.
- --Bruce
Bruce Dawson wrote:
> I've recently loaded a Linksys box with OpenWRT (version WhiteRussian).
> And I've been able to get everything working.
>
> However, when I try to set up a ppp connection between the local Linksys
> box (running OpenWRT) and a remote box, I can ping the remote box from
> the local box, but I can't ping the remote box from the network inside
> the local box.
>
> The routing table as reported by OpenWRT's route command is:
>
> root at DiamondRubyLNF:/etc/init.d# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.56.126 * 255.255.255.255 UH 0 0 0 ppp0
> 172.31.1.0 * 255.255.255.0 U 0 0 0
> vlan1
> 192.168.56.0 192.168.56.125 255.255.255.0 UG 0 0 0 ppp0
> 192.168.74.0 * 255.255.255.0 U 0 0 0 br0
> default 172.31.1.1 0.0.0.0 UG 0 0 0
> vlan1
> default 192.168.74.1 0.0.0.0 UG 0 0 0 br0
> root at DiamondRubyLNF:/etc/init.d# ping 192.168.56.3
> PING 192.168.56.3 (192.168.56.3): 56 data bytes
> 64 bytes from 192.168.56.3: icmp_seq=0 ttl=63 time=145.3 ms
> ...
>
> The "local network" (inside the local box) is 192.168.74.0/24. The
> "remote network" (inside the remote box) is 192.168.56.0/24.
>
> Again, I can ping between the two routers, and ping from the local
> router into the remote network, but I can't ping from the local network
> into the remote network.
>
> Does anyone have any ideas what I need to do to accomplish this?
More information about the gnhlug-discuss
mailing list