Skip to contentSkip to conversation

Port forwarding

DISCUSSION Jason Opperisano 3 participants 3 messages Sep 17, 2004 – Sep 19, 2004 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines · KUCKAERTZ Régis - NVISION
Quoted 4 lines

is it possible that $REAL_IP is a local IP address on the machine running netfilter? the reason i ask is that the packet counters on the FORWARD chain are zero (whereas INPUT and OUTPUT are over 40000).

Unfortunately, it is not. Really weird, since packets are correctly DNAT'ed _before_ going through the filter rules, then the kernel should detect that they are not intended to it, neh?

Quoted 7 lines

I tried tcpdump'ing the $REAL_IP and $REAL_PORT, but then nothing matched the filter.

I must have forgot one thing, since _it worked_ in the past!! :'(

Thanks for your help!

stupid question: is IP forwarding enabled (sysctl net.ipv4.ip_forward)?

'nother stupid question: is routing correctly configured from the netfilter machine to $REAL_MACHINE; i.e., can you ping $REAL_IP from the netfilter machine?

-j

Signature · 1 line
Jason Opperisano <[email protected]>
#2 lore raw
Quoted 2 lines

stupid question: is IP forwarding enabled (sysctl net.ipv4.ip_forward)?

argh, last week there was a maintenance cycle in our datacenter and every machine was rebooted. I thought

echo "1" > /proc/sys/net/ipv4/ip_forward

would be persistant but I was wrong. Also I forgot to check if it was still there after the reboot. Really sorry, this is time lost!

Thank you very much, good job!

Régis

#4 lore raw
In reply to a message not in the archive

you can set it in /etc/sysctl.conf

Quoted 16 lines · KUCKAERTZ Régis - NVISION
Quoted 2 lines

stupid question: is IP forwarding enabled (sysctl net.ipv4.ip_forward)?

argh, last week there was a maintenance cycle in our datacenter and every machine was rebooted. I thought

echo "1" > /proc/sys/net/ipv4/ip_forward

would be persistant but I was wrong. Also I forgot to check if it was still there after the reboot. Really sorry, this is time lost!

Thank you very much, good job!

Régis

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE