masq vs snat
Hi all
Is snat /x -> 1IP equal to masquerade? If I want specify address for masquerade, could I use snat for this?
Signature · 5 lines
Best regard, Alexander Trotsai aka MAGE-RIPE aka MAGE-UANIC My PGP at ftp://blackhole.adamant.net/pgp/trotsai.key[.asc] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Alexander Trotsai
Is snat /x -> 1IP equal to masquerade? If I want specify address for masquerade, could I use snat for this?
As far as I know (and from what iptables manpage says) MASQ is similar to SNAT with just a single source IP address to choose from, with the addition that all connections MASQed through this interface are lost (forgotten to be precise) when the interface goes down. This should happen when you redial your ISP and get a new IP or when DHCP leases you a different IP address. In any case, your IP changes and there is no point keeping state for connections that will never succeed any more.
My firts post to the list, hopefully not the last :-)
Signature · 5 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1) _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/