PLDWWW: Docs/port forwarding
Mateusz Korniak
"Mateusz Korniak" at pld-linux.org
Mon Apr 26 13:34:35 CEST 2010
Author: Mateusz Korniak Date: Mon Apr 26 11:34:35 2010 GMT
Module: PLDWWW URL: http://www.pld-linux.org/Docs/port_forwarding
---- Log message:
my notes about portforward
---- Page affected: Docs/port forwarding
---- Diffs:
================================================================
The comment on the change is:
my notes about portforward
New page:
== Contents ==
[[TableOfContents]]
== Problem ==
We want on host 11.1.1.111 connections on port 11111 to be forwareded to host 2.2.22.222 to port 2222.
== Simple port forwarding using using portfwd ==
On host 11.1.1.111 install:
{{{
poldek:/all-avail> install portfwd-0.29-1.i686
}}}
Edit '/etc/portfwd.cfg' and add:
{{{
/* Comment what kind of forward it is */
tcp { 11111 { => 2.2.22.222:2222 } }
}}}
Enable incoming connections to 11.1.1.111:11111 if you are using iptables firewall:
{{{
iptables -I INPUT -p tcp --dport 11111 -j ACCEPT
}}}
and perhaps outgoing connections to 2.2.22.222:2222.
Start '/etc/init.d/portfwd', set it to start up permanently ('ntsysv').
Check forwarded traffic going:
{{{
tcpdump -i eth1 host 2.2.22.222 and port 2222
}}}
More information about the pld-cvs-commit
mailing list