Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

bahamat's solutionbahamat's solution is correct; however, please note that the only way for me to make this work was to disable the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there doesn't exist anymore, but I found it through the wayback machine)

bahamat's solution is correct; however, please note that the only way for me to make this work was to disable the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there doesn't exist anymore, but I found it through the wayback machine)

bahamat's solution is correct; however, please note that the only way for me to make this work was to disable the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there doesn't exist anymore, but I found it through the wayback machine)

added 20 characters in body
Source Link
Michael Mrozek
  • 95.8k
  • 40
  • 245
  • 236

bahamat's solutionbahamat's solution is correct; however, please notnote that the only way for me to make this workingwork was disablingto disable the rp_filter for everyevery interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done   echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there is not existingdoesn't exist anymore, but I 'resurrected' that old message, thanks tofound it through the wayback machine)

bahamat's solution is correct; however please not that the only way for me to make this working was disabling the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done   echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there is not existing anymore but I 'resurrected' that old message, thanks to the wayback machine)

bahamat's solution is correct; however, please note that the only way for me to make this work was to disable the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there doesn't exist anymore, but I found it through the wayback machine)

Source Link
Davide C
  • 101
  • 1
  • 2

bahamat's solution is correct; however please not that the only way for me to make this working was disabling the rp_filter for every interface in the system, not only the two (eth1 and wlan0 in this case) involved in the NATing.

for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $f; done echo 1 > /proc/sys/net/ipv4/route/flush 

(see the IMPORTANT note at the end of this page: Advanced Routing Howto -- the link posted there is not existing anymore but I 'resurrected' that old message, thanks to the wayback machine)