[KLUG Members] Port forwarding

Adam Bultman members@kalamazoolinux.org
Thu, 27 Jun 2002 14:12:10 -0400 (EDT)


Well, the ideal way would to use ipchains.  Since I don't know that by
heart, you could do it the ghetto way.  Create entries for both ports in
/etc/services , and then create inetd.conf entries for both ports, where
the 'program run' would be netcat, which would forward the traffic on to
where it needed to go.

I don't promise it will work, but I did it here for www services before.


-- 
Adam Bultman
adam@glaven.org
[ http://www.glaven.org ]


On Thu, 27 Jun 2002, Dan Downs wrote:

> I'm trying to get PC Anywhere to connect to our NT server, but I need to forward ports 5631 and 5632 through our firewall. So far no luck, and I'm not really sure where I'm screwing up. I've been digging through the ipchains howto and tried ipmasqadm.
>
> Our setup:
> linux 2.2.14
> device: ppp0 masq. to internet
> device: eth0 to network
> Acts as our mail server and caching dns.
>
> I need to forward from 192.168.0.5(eth0) -> 192.168.0.1(NT) ports 5631, 5632. Do I need to change the firewall and mess with ipmasqadm? Or just one of them?
>
> Any pointers would be great,
> Dan Downs
>