Can't forward ports w/ ipchains ipmasqadm

Can't forward ports w/ ipchains ipmasqadm

Post by Mark Mora » Wed, 17 Feb 1999 04:00:00



Ok, I've lost too much hair trying to decipher this one, time to ask
for help.

I'm attempting to redirect certain ports to an NT machine behind a
Linux firewall.  I want linux:8000 -> to nt:80, etc.

I've got the IP forwarding turned on and I'm masq'ing fine for the
whole network going to the rest of the world. Using redir nt 8000 80
works fine.

I've used ipmasqadm to set this up:

TCP linuxbox  ntbox          8000      www    10    10

But a telnet linuxbox 8000 gives me a connection refused.  A telnet
linuxbox 8000 when redir is running works fine.  What am I missing?

I believe I have my kernel complied correctly:

CONFIG_IP_FIREWALL=y
# CONFIG_IP_FIREWALL_NETLINK is not set
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_TRANSPARENT_PROXY=y
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=m
CONFIG_IP_MASQUERADE_IPPORTFW=m
CONFIG_IP_MASQUERADE_MFW=m
CONFIG_IP_ROUTER=y
CONFIG_NET_IPIP=y
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y
# CONFIG_IP_MROUTE is not set
CONFIG_IP_ALIAS=y
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y

What give?

Mark Moran

http://www.mmoran.com/

 
 
 

1. Kernel 2.2.1:IPCHAINS:IPPORTFW:IP port forwarding: IP Masq: ipmasqadm

Thanks to a kind soul from this forum (gweeks) we've just saved $5000 on
new firewall software.

Remember to compile Kernel 2.2.1 with the experimental options under
"Code maturity level options" and the you will have access to the IP
port forwarding options under "Networking options".

Only then can your IP port forward work.  Maybe you all know this, and
I'm slow.  Hope this helps someone besides me.  (I can't wait for you to
pick this up on Dejanews.)

:-)

2. Binutils and GCC

3. port forwarding problems (ipmasqadm + ipchains)

4. kernel rpm for athlon xp is i686 ok ??

5. ipchains, ipmasqadm and port forwarding to apache

6. Virtual systems ....

7. ipchains port forward, ipmasqadm mfw

8. mp3 questions in RH8

9. Getting ipmasqadm to play nice with ipchains rules for port forwarding

10. ipmasqadm & ipchains: port forwarding

11. IPCHAINS & IPMASQADM Port Forwarding

12. ipmasqadm port forward collides with other ports

13. ipchains + ipmasqadm Forwarding Issues