Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: Pascal Hambourg <boite-a-spam@xxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 13:05:47 +0200
Hello,
Robert a écrit :
On Mon, 28 Aug 2006 23:26:11 -0700, wisptech wrote:
iptables -t nat -A POSTROUTING -s 172.19.0.0/24 -j SNAT --to
66.119.9.186
Since POSTROUTING is done on all FORWARD'ed packets every packet no matter
where is started,
This is not completely true, as most packets don't traverse the nat chains. Only the first packet of a connexion does. The next ones are implicitly processed by the NAT code.
when it exits the box it is being SNAT'ed to 66.119.9.186
This is true only for packets in the original direction of the connection, not for packets in the return direction.
Can someone tell me what the heck I'm doing wrong?
You didn't describe your network setup. So the reader doesn't know what the 66.119.9.186 or 172.19.0.0/24 addresses mean. You didn't clearly say what is your goal either.
.
- Follow-Ups:
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: wisptech
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- References:
- IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: wisptech
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: Robert
- IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- Prev by Date: Re: iptables: state RELATED and ICMP
- Next by Date: problem with tun
- Previous by thread: Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- Next by thread: Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- Index(es):
Relevant Pages
|