Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: "Lending an internet connection"
Date: Sat, 28 Sep 2002 20:14:35 +0100	[thread overview]
Message-ID: <20020928191437.NJRG6699.mta01-svc.ntlworld.com@there> (raw)
In-Reply-To: <20020928183518.5187.qmail@web21510.mail.yahoo.com>

On Saturday 28 September 2002 7:35 pm, Sebastian Edman wrote:

> Hi,
>
> I have a brother that has an internet connection with a static public IP
> (217.x.x.139). He is running windows and I want to place a linux-server at
> his house, and only take ports 22, 25 and 80 from him. The best way I can
> see to accomplish that is to place the linux-server between his computer
> (running windows) and his ISP, in such a way so that no change is
> neccessary on his computer.
>
> ISP ------- (eth0) Linux-server (eth1) ------- (eth2) Windows machine
>
> (eth2) is configured with the static public IP from the ISP (217.x.x.139)
> and has gateway 217.x.x.1 and DNS servers 212.x.x.2 and 212.x.x.3.
>
> I run LFS (www.linuxfromscratch.org) on the linux-server and I consider my
> skills in iptables enough to write the rules. The problem is that I do not
> know how to tackle this problem. What IP addresses should I choose for the
> linux-server, and what IP addresses should I forward?

I don't think you can do it.

You're trying to set up two machines, connected on a network, with only a 
single IP address.   There's no way they'd be able to communicate.

You can't put the public IP address 217.x.x.139 on eth0 because then eth1 
wouldn't talk to the Windows machine.

You can't put anything other than 217.x.x.139 on eth0 because then the ISP 
wouldn't talk to it.

You'll just have to put 217.x.x.139 onto eth0, put a private network between 
eth1 and the Windows machine, and do the standard NAT thing.....


Antony.

-- 

Anyone that's normal doesn't really achieve much.

 - Mark Blair, Australian rocket engineer


  reply	other threads:[~2002-09-28 19:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-28 18:35 "Lending an internet connection" Sebastian Edman
2002-09-28 19:14 ` Antony Stone [this message]
2002-09-29 18:52   ` 'Lending an internet connection' Mitesh P Choksi
2002-09-30 13:48     ` 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=20020928191437.NJRG6699.mta01-svc.ntlworld.com@there \
    --to=antony@soft-solutions.co.uk \
    --cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox