O.K. I have ipmasqadm installed from rpm but I get the following error when
trying to apply "ipmasqadm portfw -f". This is what I am getting:
portfw: setsockopt failed: Invalid argument
How do I check if that required "port forward" options is compiled into my
kernel? When I was compiling my 2.2.13 kernel, some of the IP masq options
where greyed out . How do I re-enable them because I think, that this is
where that port forwarding might be?
Thanks.
Your Kermel has to support ip masquarade and port forward. If not, you
need to recompile your Kernel.
In addition, you need to run ipmasqadm to do port forward.
I got the following script from the How-to document.
It's just an example.
###### Redirect WWW Server #######
/usr/sbin/ipmasqadm portfw -f
/usr/sbin/ipmasqadm portfw -a -P tcp -L $extip 80 -R 192.168.0.10 80
Replace $extip with your internet address, and replace 192.168.0.10 with
your Web server local address.
You can go to the following site to downlaod ipmasqadm
http://rpmfind.net/linux/RPM/contrib/libc6/i386/ipmasqadm-0.4.2-3.i38...
I've posted this in: redhat.networking.general with no response, so here
goes:
I've set up a Linux RH6.1 machine to act as a firewall between my internal
LAN and the internet. The connection I have to the internet is a DSL modem
with static IP. I basicly read the how-tos on configuring the firewall to
restrict incommng requests and allow outgoig request. Everything works fine.
I'm now trying to figure out how to redirect/forward WWW requests from the
internet to my webserver behind the firewall. I'm sure it has something to
do with additional ipchain commands, but I've yet to see a simple example I
can follow.
Could someone please post a simple ipchain command for redirecting external
requests (internet) to an internal machine through the firewall?
thanks for any help,