Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #7117

Re: Using a public IP-address in my home private network?

From Pascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Newsgroups comp.os.linux.misc
Subject Re: Using a public IP-address in my home private network?
Date 2013-01-27 11:49 +0100
Organization Plouf !
Message-ID <ke30no$1huf$1@saria.nerim.net> (permalink)
References (8 earlier) <slrnkfrebm.vh4.BitTwister@wb.home.test> <BnkLs.15030$O02.12618@newsfe18.iad> <3cc7fd7e-c4bd-4c0b-a0e4-f2048305740f@m12g2000yqp.googlegroups.com> <QpBLs.42724$9N1.21846@newsfe13.iad> <97f0f0f1-3084-485e-9e62-3a93202d607b@x3g2000yqo.googlegroups.com>

Show all headers | View raw


dspfun a écrit :
> 
> Is the following a feasible network setup (I have changed the IP-
> numbering from the original post to possibly make it clearer)?
> 
> C2 will have one NIC with two IP-addresses which have the same MAC
> (i.e. IP-alias), 50.50.50.51 and 192.168.1.3.
> 
> In the incoming direction:
> The home-router will be configured with a next hop of 192.168.1.2 (C1)
> for packets destined to 50.50.50.51.

Ok. Don't forget to enable IP forwarding.

> C1 will be configured with a next hop of 192.168.1.3 (C2) for packets
> destined to 50.50.50.51.

No need to use C2's private address as the next hop here. C1 can (and
should IMO) just have a direct route to 50.50.50.51.

> Then C2 will be configured to forward packets to 50.50.50.51 when it
> receives packets on its interface with 192.168.1.3.

Huh ? What do you mean ?
C2 owns 50.50.50.51, there is no point in forwarding packets with a
local destination address.
And what does 192.168.1.3 have to do here ?
We are *NOT* talking about NAT here, are we ? Just plain IP forwarding ?

> In the outgoing direction:
> C2 will be configured with a default gateway of 192.168.1.2 (C1), and
> be configured to put source address 50.50.50.51 in its packets.
> C1 will be configured with a default gateway of 192.168.1.1.
> Home-router will be configured with a default gateway of the ISP-
> router.

Ok. One problem could be that C1 may send ICMP Redirect messages to C2
advertising that there is a shorter route using directly 192.168.1.1 as
the next hop. So you may want to disable sending such messages on C1 or
accepting them on C2. See /proc/sys/net/ipv4/conf/<interface>/*redirects

> Resulting in a network setup like this:
> 
>                        C2
>   C1                 192.168.1.3
>   192.168.1.2    50.50.50.51
>   |                     |
>   -----------------------
>   |           switch      |
>   -----------------------
>    |
>  192.168.1.1
>  Home-router
>  50.50.50.50
>   |
>  ISP-router
> 
> Is this the easiest/best/most standard way of setting up the network,
> given that NAT should not be used for C2?

Yes. Now it all relies on the capability of the router to properly
forward traffic to and from 50.50.50.51, without adding any NAT.

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-15 10:07 -0800
  Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-15 18:30 +0000
  Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-15 18:37 +0000
    Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-16 00:59 -0800
      Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-16 10:20 +0000
      Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-01-16 12:00 +0000
        Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-16 04:45 -0800
          Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-01-16 12:51 +0000
          Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-16 13:11 +0000
            Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-16 06:28 -0800
            Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-01-16 14:37 +0000
              Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-16 14:58 +0000
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-01-16 15:37 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-16 08:24 -0800
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-20 19:39 +0100
          Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-16 17:35 +0000
            Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-20 19:42 +0100
  Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-01-15 22:30 +0000
    Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-16 02:41 +0000
      Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-01-16 19:06 +0000
        Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-16 20:27 +0000
      Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-20 19:46 +0100
        Re: Using a public IP-address in my home private network? Moe Trin <ibuprofin@painkiller.example.tld.invalid> - 2013-01-20 22:07 +0000
          Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-21 05:31 +0000
            Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-21 00:17 -0800
              Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-21 17:33 +0000
              Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-01-21 21:15 +0000
                Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-21 21:56 +0000
                Re: Using a public IP-address in my home private network? Grant <omg@grrr.id.au> - 2013-01-22 10:11 +1100
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-21 23:42 +0000
                Re: Using a public IP-address in my home private network? Bit Twister <BitTwister@mouse-potato.com> - 2013-01-22 00:09 +0000
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-22 00:33 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-22 02:53 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-22 19:05 +0000
                Re: Using a public IP-address in my home private network? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2013-01-22 21:16 +0200
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-22 23:53 -0800
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-01-23 10:28 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-23 03:28 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-23 17:26 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-23 13:02 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-23 22:12 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-24 05:12 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-24 17:09 +0000
                Re: Using a public IP-address in my home private network? cipher <cipher@nospamforme.org> - 2013-01-31 23:28 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-01 00:33 +0000
                Re: Using a public IP-address in my home private network? James Moe <jimoeDESPAM@sohnen-moe.com> - 2013-01-23 09:56 -0700
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-23 17:25 +0000
                Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-01-23 21:51 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-24 05:20 -0800
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 11:49 +0100
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 12:08 +0100
                Re: Using a public IP-address in my home private network? James Moe <jimoeDESPAM@sohnen-moe.com> - 2013-01-21 16:49 -0700
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-22 00:00 +0000
                Re: Using a public IP-address in my home private network? James Moe <jimoeDESPAM@sohnen-moe.com> - 2013-01-21 23:32 -0700
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-22 19:02 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 12:15 +0100
                Re: Using a public IP-address in my home private network? s_dubrovich@yahoo.com - 2013-01-22 09:08 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-22 19:07 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-01-22 19:38 +0000
                Re: Using a public IP-address in my home private network? s_dubrovich@yahoo.com - 2013-01-22 19:52 -0800
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 12:02 +0100
              Re: Using a public IP-address in my home private network? James Moe <jimoeDESPAM@sohnen-moe.com> - 2013-01-21 16:46 -0700
              Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 11:56 +0100
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-01-27 14:27 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-27 18:21 +0100
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-30 04:17 -0800
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-01-30 12:43 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-30 23:46 -0800
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-01-31 09:03 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-31 03:40 -0800
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-01-31 09:19 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-31 03:44 -0800
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-01-31 12:01 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-01 01:49 +0100
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-01-31 23:19 -0800
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-01 10:23 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-01 11:23 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 12:22 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-02 13:49 +0000
                Re: Using a public IP-address in my home private network? Jean-David Beyer <jeandavid8@verizon.net> - 2013-02-02 10:13 -0500
                [OT] Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 16:30 +0100
                Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-02-02 17:48 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-02 18:16 +0000
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-02-02 20:11 +0000
                Re: Using a public IP-address in my home private network? John Hasler <jhasler@newsguy.com> - 2013-02-02 14:51 -0600
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-02 21:27 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-02 22:30 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-02 22:49 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 00:45 +0000
                Re: Using a public IP-address in my home private network? cipher <cipher@nospamforme.org> - 2013-02-03 00:52 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 11:01 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-03 13:15 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 13:20 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-03 15:08 +0000
                Re: Using a public IP-address in my home private network? cipher <cipher@nospamforme.org> - 2013-02-05 10:22 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-05 15:20 +0000
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-02-05 17:22 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-05 17:59 +0000
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-02-05 19:40 +0000
                Re: Using a public IP-address in my home private network? John Hasler <jhasler@newsguy.com> - 2013-02-05 14:17 -0600
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-06 01:22 +0000
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-02-06 02:11 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-06 03:21 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 21:19 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-06 00:21 +0000
                Re: Using a public IP-address in my home private network? Whiskers <catwheezel@operamail.com> - 2013-02-03 15:21 +0000
                Re: Using a public IP-address in my home private network? John Hasler <jhasler@newsguy.com> - 2013-02-02 16:24 -0600
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-02 22:46 +0000
                Re: Using a public IP-address in my home private network? John Hasler <jhasler@newsguy.com> - 2013-02-02 17:57 -0600
                Re: Using a public IP-address in my home private network? John Hasler <jhasler@newsguy.com> - 2013-02-02 13:07 -0600
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 16:24 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-01 11:20 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 12:19 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-02 13:48 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 16:17 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-02 15:47 +0000
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-02 16:26 +0000
                Re: Using a public IP-address in my home private network? dspfun <dspfun@hotmail.com> - 2013-02-04 03:19 -0800
                Re: Using a public IP-address in my home private network? unruh <unruh@invalid.ca> - 2013-02-04 17:03 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-04 19:51 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-06 01:14 +0100
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-06 09:07 +0000
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-06 13:58 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-07 01:09 +0100
                Re: Using a public IP-address in my home private network? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-07 00:58 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-09 13:46 +0100
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-09 15:07 +0000
                Re: Using a public IP-address in my home private network? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-09 17:06 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-09 17:19 +0000
                ifconfig(8) vs. iproute Ivan Shmakov <oneingray@gmail.com> - 2013-02-09 17:18 +0000
                Re: Using a public IP-address in my home private network? Robert Riches <spamtrap42@jacob21819.net> - 2013-02-10 04:44 +0000
                Re: Using a public IP-address in my home private network? J G Miller <miller@yoyo.ORG> - 2013-02-10 14:14 +0000
                Re: Using a public IP-address in my home private network? cipher <cipher@nospamforme.org> - 2013-02-11 00:19 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-06 01:09 +0100
                Re: Using a public IP-address in my home private network? cipher <cipher@nospamforme.org> - 2013-02-04 21:46 +0000
                Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-02-02 17:30 +0100
            Re: Using a public IP-address in my home private network? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2013-01-25 01:44 +0100

csiph-web