All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Rycaj <daniel.rycaj@fuchs.pl>
To: netfilter@lists.samba.org
Subject: splitting one network physically using linux box.
Date: Tue, 7 May 2002 11:07:03 +0200	[thread overview]
Message-ID: <20020507110703.2ef33390.daniel.rycaj@fuchs.pl> (raw)

hi,

I have a *very* standard situation:

network: 10.1.1.97/27

	   small router			10 PCs
	---[ 10.1.1.97 / 27 ] --------- [ 10.1.1.98-108 ]

Now I want to create a firewall between the "small router" and "10 PCs".
The only problem is: nobody should change configuration of PC. 
So the default gw still should be set to 10.1.1.97 on each PC.

I did such configuration:

	
	--[ 10.1.1.97 / 27 ] ----- eth0 [ linux box ] eth1 ------ [ 10.1.1.98-108 ]

eth1 must have assigned IP: 10.1.1.97 because I don`t want to change configuration of PCs.
eth0 can be set to one of unused addresses from 10.1.1.96 network (in my example 10.1.1.110)

I have to set up the default gw for my linux box to 10.1.1.97.
How to tell linux that he has to route packet through the external 10.1.1.97 rather the local one ? :)

I tried to do it by several ways:

1) ip ro add 10.1.1.97/32 dev eth0	- doesn`t work because 10.1.1.97 exists in table local

2) ip ro del 10.1.1.97/32 table local	- works fine for 1-2 minutes. After this short time
the local table contains .97 again !

Any ideas how to solve this ?

regards,
Daniel Rycaj


             reply	other threads:[~2002-05-07  9:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07  9:07 Daniel Rycaj [this message]
2002-06-13 15:47 ` splitting one network physically using linux box Antony Stone

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=20020507110703.2ef33390.daniel.rycaj@fuchs.pl \
    --to=daniel.rycaj@fuchs.pl \
    --cc=netfilter@lists.samba.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.