wlan0 ppp0 NAT problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings all,

  I was trying to set up a NAT, the topology of this network is:

DEVICE <-----ad-hoc-----> BOX wlan0 <------------> BOX ppp0
<--------------> Internet

The ppp0 interface is set up with PPPoE by eth0, and my iptables rules are:

*filter
:INPUT ACCEPT [31316:22057491]
:FORWARD ACCEPT [139:8687]
:OUTPUT ACCEPT [30478:19500665]
COMMIT
# Completed on Thu Jan 22 12:06:57 2009
# Generated by iptables-save v1.4.2 on Thu Jan 22 12:06:57 2009
*nat
:PREROUTING ACCEPT [3067:206779]
:POSTROUTING ACCEPT [37:2234]
:OUTPUT ACCEPT [436:43436]
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT

# cat /proc/sys/net/ipv4/ip_forward
1

By using wireshark, I can sniff TCP SYN requests from DEVICE are going
through ppp0 correctly but the response was never forward to wlan0.
Could anyone help? Thanks!

Deephay.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux