Bradley J. Molnar on Sun, 28 Apr 2002 22:06:11 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] port forwarding question


2 ideas,

#1 - kernel 2.4.x uses ip_tables, not ip_chains (like 2.2.x did). Since Ipmasq was part of ipchains, this may be the problem. You might be able to find some utility that works better with ip_tables. Someone correct me if i'm wrong

#2 - use SSH forwarding

look at man ssh, but, I believe that the general syntax is something like

ssh -L localport:remote machine:remote port

and can be run from either the client or the server (although I think that this one works best from the client -- ie, not the firewall).

There is a way to set this up to automatically start on bootup. I know that someone else on the list knows a lot more about ssh than i do, so, I will let them answer (basically, I know that it exists but not how to do it).

-brad

David Calkins wrote:

I'm running a PC with RedHat Linux 7.2 (kernel v2.4.7-10) and using this machine to provide DSL internet access to my small LAN. I've installed the "Roaring Penguin" DSL client v3.3.1, which set things up nicely and took care of configuring the settings necessary to have masquerading work. Currently I'm able to surf the web, check Email, etc. from any machine on my LAN and its working great for this.

I'd like to run a network client on one of the machines in my LAN, which receives updates via UDP from a server on the internet. So, I'd like to have the linux machine forward all UDP traffic on a particular port over to my LAN machine.

The IP-Masquerade-HOWTO (9/12/2001), sec 6.8 provides some info on how to do this. I downloaded and installed ipmasqadm v0.4.2-4. When I try to use it, I get a setsocketopt() error, which, according to the HOWTO, indicates my kernel doesn't have support for port forwarding.

I attempted to rebuild the kernel with support for port forwarding, however, I was unable to find any 'port forwarding' option in the kernel configuration (using 'make menuconfig').

Any ideas? :-)





______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug






______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug