blue caddy wrote: > Hi, > > I'd like to configure Shorewall to accept my incoming connection (from the > Internet) on tcp port 3389, replace my source IP address with the firewall's > IP (external address), then forward it to another server on port 3389. > Basically, a proxy function for TCP 3389. > > So, I need Shorewall to masquerade the connection, then forward the > connection out the same physical interface. > > Can anyone suggest a solution? >
Sure. Use a DNAT rule and an entry in /etc/shorewall/masq. Remember though that DNAT occurs *before* SNAT; DNAT occurs when the packet is first received while SNAT occurs just before the packet is sent. Shorewall FAQ 2 shows an example. -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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
