Tom Eastep wrote: > Steven Jan Springl wrote: >> Tom >> >> Masq entry: >> >> eth0 eth0 >> >> and proxyarp entry: >> >> 192.168.10.3 eth0 eth0 No No >> >> when compiled with shorewall-shell generates: >> >> -A eth0_masq -s 192.168.10.3 -m policy --dir out --pol none -j MASQUERADE >> -A eth0_masq -s 192.168.0.0/255.255.255.0 -m policy --dir out --pol none -j >> MASQUERADE >> >> but when compiled with shorewall-perl generates: >> >> -A eth0_masq -s 192.168.0.0/255.255.255.0 -j MASQUERADE >> > > This is a consequence of the difference in the order of operations in > the two compilers. Shorewall-shell processes the proxyarp file before > the masq file while shorewall-perl does the opposite. Since it is a > configuration error to masquerade proxy-arped hosts at all, I don't > believe this difference is a problem.
Note that in the real-world case where the ADDRESS column of the proxyarp entry is an external IP: /etc/shorewall/proxyarp 206.124.146.177 eth1 eth0 No No /etc/shorewall/masq: eth0 eth1 Shorewall shell generates an unwanted MASQUERADE rule: A eth0_masq -s 206.124.146.177/255.255.255.0 -m policy --dir out --pol none -j MASQUERADE This problem is avoided by changing the processing order as I did in Shorewall-perl. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
