[lug] port forwarding
Michael J. Pedersen
marvin at keepthetouch.org
Mon Nov 27 12:28:15 MST 2000
On Sat, Nov 25, 2000 at 06:05:43PM -0700, llornkcor wrote:
> Could someone with a more firewalling knowledge than me, help me with IPCHAINS commands to allow
> port forwarding of port 6699 and such, across my firewall?
Sorry it took so long to reply. Been offlist for Thanksgiving.
These commands should do it (feel free to modify to suit your tastes):
ipchains -A input -s 0.0.0.0/0.0.0.0 6699:6699 -d 0.0.0.0/0.0.0.0 -i eth1 -p 6 -j ACCEPT
IP_REAL="internet.ip.address.of.firewall"
TOIP_PC="private.ip.address.behind.firewall"
ipmasqadm portfw -f
ipmasqadm portfw -a -P tcp -L $IP_REAL 6699 -R $TOIP_PC 6699
--
Michael J. Pedersen
My GnuPG KeyID: 4E724A60 My Public Key Available At: wwwkeys.pgp.net
My GnuPG Key Fingerprint: C31C 7E90 5992 9E5E 9A02 233D D8DD 985E 4E72 4A60
GnuPG available at http://www.gnupg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20001127/462da6a6/attachment.pgp>
More information about the LUG
mailing list