lkml.org 
[lkml]   [1998]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: port forwarding
On Mon, Jun 15, 1998 at 10:55:09PM -0400, Paul Miller wrote:
>
> I'm trying to redirect a port from my internet connection to a local
> computer (kind of like reverse ip masquerading). On the stable kernels, I
> use:
>
> ipportfw -A -u [ip]/[port] -R [ip]/[port]
Ok for *2.0+portfw patch*

For 2.1 you'll need ipmasqadm tool (@my URL)
# ipmasqadm -a -P udp -L <ip> <port> -R <internal_ip> <another_port>

>
> Now, how can I do port forwarding on kernels 2.1.106 or greater? I've
> tried:
>
> ipchains -A forward -j REDIRECT -p [tcp|udp] -s [ip] [port] -d [ip] [port]
>
> ...and it seg. faulted. I've also tried adding the netmasks, and got the
> same results.
That's a transparent proxy setup (sort of forwarding "hook" and redirection
to LOCAL port), although it should not sigfault anyway.

Regards

--
-- Juanjo http://juanjox.home.ml.org/
Yo don't need an hologram to know...
Nor you need to sell your brain to anyone.
Yo can feel it. It's Linux.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.053 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site