All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Groeneveld <tim@timg.ws>
To: lartc@vger.kernel.org
Subject: Re: FW: [LARTC] Routing public IP's through a gateway
Date: Mon, 15 Oct 2007 14:10:55 +0000	[thread overview]
Message-ID: <200710160010.57669.tim@timg.ws> (raw)
In-Reply-To: <200710142307.12127.tim@timg.ws>


[-- Attachment #1.1: Type: text/plain, Size: 2434 bytes --]

On Monday 15 October 2007 11:12:40 pm Tim Groeneveld wrote:
> On Monday 15 October 2007 11:07:39 pm Dan wrote:
> > So, according to your emails, your external (eth1) interface on the
> > Gateway machine ** needs to be .209 not .211 or .210 ** (as this is where
> > the ISP's 'router' is pointing the .72 subnet according to what you
> > said), and you need to type echo 1 > /proc/sys/net/ipv4/ip_forward on the
> > gateway machine. No route commands needed: the Gateway machine knows
> > where the .72 subnet is, because it has an interface on it. The Gateway
> > Machine's default gateway is set to your normal ISP's gateway.
>
> .209 is taken by the routers gateway, so, it needs to be 210.

root@videl:/home/tim# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
202.172.122.208 *               255.255.255.248 U     0      0        0 eth1
202.172.122.72  *               255.255.255.248 U     0      0        0 eth2
link-local      *               255.255.0.0     U     1000   0        0 eth1
default         home.gateway    0.0.0.0         UG    100    0        0 eth1


root@videl:/home/tim# ip route list
202.172.122.208/29 dev eth1  proto kernel  scope link  src 202.172.122.210
202.172.122.72/29 dev eth2  proto kernel  scope link  src 202.172.122.73
169.254.0.0/16 dev eth1  scope link  metric 1000
default via 202.172.122.209 dev eth1  metric 100

Is this the correct way to have the route, or is there something here that 
could be stopping the route from working?

root@videl:/home/tim# tcpdump -i eth2
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes
00:08:23.863360 IP 202-172-122-76.static.nsw-6.comcen.com.au.1175 > 
jc-in-f99.google.com.www: S 3109124259:3109124259(0) win 65535 <mss 
1460,nop,nop,sackOK>
00:08:26.786727 IP 202-172-122-76.static.nsw-6.comcen.com.au.1175 > 
jc-in-f99.google.com.www: S 3109124259:3109124259(0) win 65535 <mss 
1460,nop,nop,sackOK>
00:08:31.280752 arp who-has home.gateway tell 
202-172-122-74.static.nsw-6.comcen.com.au
00:08:32.795422 IP 202-172-122-76.static.nsw-6.comcen.com.au.1175 > 
jc-in-f99.google.com.www: S 3109124259:3109124259(0) win 65535 <mss 
1460,nop,nop,sackOK>

That is a tcpdump of eth2 ... when typing 72.14.253.147 into a browser.

Thanks again,
    - Tim G

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

      parent reply	other threads:[~2007-10-15 14:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-14 13:07 [LARTC] Routing public IP's through a gateway Tim Groeneveld
2007-10-14 20:47 ` Alex Samad
2007-10-15  2:51 ` Mohan Sundaram
2007-10-15  2:59 ` Mohan Sundaram
2007-10-15 12:14 ` Tim Groeneveld
2007-10-15 12:31 ` Dan
2007-10-15 13:07 ` FW: " Dan
2007-10-15 13:12 ` Tim Groeneveld
2007-10-15 14:10 ` Tim Groeneveld [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200710160010.57669.tim@timg.ws \
    --to=tim@timg.ws \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.