[OpenWrt-Users] Help routing between wireless and wired segments
Bob Diss
rldiss at yahoo.com
Fri Dec 15 05:28:08 CET 2006
> > It seems like the 54G is not forwarding packets
> > between the to network segments. Is that true?
> Is
> > there additional configuration that needs to be
> done?
> > Or something else I can try?
>
> Well, have you activated packet forwarding ?
> Look at the output of:
> cat /proc/sys/net/ipv4/ip_forward
> if it's '0', packet forwarding is not activated.
> To activate it, do:
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> If it didn't solve your problem, please send the
> output of:
> ip route show all
> iptables -L
> iptable -t nat -L
> iptables -t mangle -L
>
Forwarding is/was enabled, and still no luck.
root at OpenWrt:~# cat /proc/sys/net/ipv4/ip_forward
1
root at OpenWrt:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags
MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U
0 0 0 br0
192.168.15.0 0.0.0.0 255.255.255.0 U
0 0 0 br1
0.0.0.0 192.168.15.1 0.0.0.0 UG
0 0 0 br1
root at OpenWrt:~# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere
state INVALID
ACCEPT all -- anywhere anywhere
state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere
tcp option=!2 flags:SYN/SYN
input_rule all -- anywhere anywhere
LAN_ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
ACCEPT gre -- anywhere anywhere
REJECT tcp -- anywhere anywhere
reject-with tcp-reset
REJECT all -- anywhere anywhere
reject-with icmp-port-unreachable
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere
state INVALID
TCPMSS tcp -- anywhere anywhere
tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere
state RELATED,ESTABLISHED
forwarding_rule all -- anywhere
anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain LAN_ACCEPT (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere
state INVALID
ACCEPT all -- anywhere anywhere
state RELATED,ESTABLISHED
output_rule all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere
reject-with tcp-reset
REJECT all -- anywhere anywhere
reject-with icmp-port-unreachable
Chain forward_vlan1 (1 references)
target prot opt source destination
Chain forwarding_rule (1 references)
target prot opt source destination
forward_vlan1 all -- anywhere anywhere
Chain input_rule (1 references)
target prot opt source destination
input_vlan1 all -- anywhere anywhere
Chain input_vlan1 (1 references)
target prot opt source destination
Chain output_rule (1 references)
target prot opt source destination
root at OpenWrt:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
prerouting_rule all -- anywhere
anywhere
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
postrouting_rule all -- anywhere
anywhere
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain postrouting_rule (1 references)
target prot opt source destination
Chain prerouting_rule (1 references)
target prot opt source destination
prerouting_vlan1 all -- anywhere
anywhere
Chain prerouting_vlan1 (1 references)
target prot opt source destination
root at OpenWrt:~# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
root at OpenWrt:~#
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
More information about the openwrt-users
mailing list