LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ip forwarding problem (https://www.linuxquestions.org/questions/linux-networking-3/ip-forwarding-problem-523567/)

sahand_rezayi 01-28-2007 03:13 PM

ip forwarding problem
 
hello i have an a problem with my red hat box.
i had installed redhat 8.0 with 2.4.25 kernel on my computer.
network configuration:

eth0: 205.177.179.2 netmask 255.255.255.240 broadcast 205.177.179.15

eth1:205.177.179.65 netmask 255.255.255.192 broadcast 205.177.179.127

DEFAULT GATEWAY=205.177.179.1
DNS SERVER=127.0.0.1

ip forwarding is enabled in sysctl.conf and the result in /proc/sys/net/ipv4/ip_forward shows that.

the client on my network like 205.177.179.66 cannot ping internet with 205.177.179.65 gateway.
whats the problem?

acid_kewpie 01-28-2007 03:39 PM

do you have a functional return route back to those client addresses? the normal thing would be to do ip masquarading, but as you're using internet ip's already, which i assume you paid for or something, you shouldn't need it. but you'll only not need it if there are valid return routes back to it. you can eliminate the ip_forward part of the equation for simpicity and try pinging from the linux router with the internal interface address, e.g. ping -I eth1. if that works then the rest of the routing is fine, and maybe you have a firewall issue on the box? also when pinging, run tcpdump on eth0 to see that the icmp packets are actually leaving your linux router, that's a great point of demarcation to get over.


All times are GMT -5. The time now is 06:06 PM.