Tom Eastep wrote: > Tom Eastep wrote: >> 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. > > Hmmmm -- just looked at this again and the order in the two compilers is > the same. I'll take a closer look. > > Please stand by.....
Okay. I found one anomaly; the masq entry that you were seeing with Shorewall-shell also appeared after a "shorewall restart" with Shorewall-perl. I fixed that in revision 6427. The reason that the extra masq entry appears in Shorewall-shell and not in Shorewall-perl is that Shorewall-perl captures the routes through eth0 as one of its early steps (before proxy arp is set up); the bug I fixed was because it was being captured *too* early (before the contents of /var/lib/shorewall/proxyarp had been processed). Thanks again, Steven. -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
