I can send packets but I receive nothing, routing problem

From: riviereg (guillaume_at_nomail.org)
Date: 09/03/04


Date: Fri, 03 Sep 2004 16:46:27 +0700

Dear all linux networking,

I try to set up a route to my ISP:

my 10.0.0.0 network is connected to the router on eth0
my ISP is on link eth2 on my router (GNU/Debian sarge, kernel 2.6.8, I
try with 2.6.7 same problem).
my external IP is 1.2.3.4
my gateway is 1.2.3.5 (this is my modem, with a real IP address)

I try to route my internal IP 10.0.0.1 to this ISP

my route is configure like this:

# ADSL line
ip route flush table 5
ip route add table 5 default via 1.2.3.5 src 1.2.3.4 dev eth2
ip rule add fwmark 5 table 5

my Nat is like this

iptables -t mangle -A PREROUTING -s 10.0.0.1 -j MARK --set-mark 5
iptables -t nat -A POSTROUTING -o eth2 -s 10.0.0.1 -j SNAT --to 1.2.3.4

All is ok, I can access to my modem (1.2.3.5) from 10.0.0.1, I can also
access to internet on this modem (there is a web site on the modem).

But when I try to access to Internet from 10.0.0.1, I can "find" sites
but I receive nothing, all my ping are lost. This problem drive me crasy ...

I think I send packets but there is a kind of incoming reply routing
problem. All other IP's from my internal network can connect with the
default gateway on my first ISP (eth1).

Thank you for Help me on this,
Guillaume



Relevant Pages

  • Re: DSL setup questions... again.
    ... >I've got ADSL from my ISP via Qwest to an Actiontec 1524 DSL modem. ... It connects to the ISP using PPPoA and DHCP. ... The computers effectively don't have Internet addresses at all; ... non-changing addresses on your LAN. ...
    (comp.os.linux.networking)
  • Re: I can send packets but I receive nothing, routing problem
    ... > I try to set up a route to my ISP: ... > access to internet on this modem. ... All other IP's from my internal network can connect with the ...
    (comp.os.linux.networking)
  • Re: Why IP address is fixed everytime connected to the Internet?
    ... Your ISP will like as not assign a dynamic IP to your modem; ... If you have a router, then don't worry about this, as the router has inbuilt ... these IPs are hidden from the WAN (internet) side of the router. ...
    (microsoft.public.security)
  • Re: networking
    ... > Really bottom line each machine will connect to the internet and each ... > Is the modem a cable or DSL modem on either PC? ... > Modem on linux is external US Robitics 56k on XP lucent PCI win modem ... >> Read the man or XP Home for details of the route statements. ...
    (alt.os.linux)
  • Re: Dial up: kppp
    ... >>access to the internet. ... When I use kppp, the modem connects, but no ... internet connection is the local address assigned by the ISP; ... addes the temp entry of the local address assigned by the ISP. ...
    (alt.os.linux)