Port forwarding
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
_itworked_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]>
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
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_forwardwould 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