[PLUG] IPtables internal port forwarding
Dan Young
danielmyoung at gmail.com
Wed May 6 21:57:16 UTC 2009
On Wed, May 6, 2009 at 1:54 PM, Michael <michael at jamhome.us> wrote:
>
> If I have a connection arriving on Port X from IPaddr A.B.C.D can I forward it
> to port 80X?
>
> Or to be a bit less abstract:
>
> If I have a client connecting to port 22 on my server, say from 10.18.18.4
> can I use IPtables to sent that connection to Port 8022 on the same box?
iptables -t nat -A PREROUTING -p tcp -s 10.18.18.4 --dport 22 -j
REDIRECT --to-port 8022
Something like that, anyways.
--
Dan Young
More information about the PLUG
mailing list