Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michael Garriss <mgarriss@uglymonkeys.com>
To: netfilter@lists.netfilter.org
Subject: Re: work ip address at home
Date: Wed, 22 Oct 2003 11:18:53 -0600	[thread overview]
Message-ID: <20031022171853.GA2010@frodo.uglymonkeys.com> (raw)
In-Reply-To: <20031022112801.V34090@chemsun.chem.umn.edu>

On Wed, Oct 22, 2003 at 12:08:26PM -0500, Brent Gregersen wrote:
> I need help with the following setup.
> 
> I have one machine at home that gets an IP address (say 1.2.3.4) by DHCP
> from an ISP. However, I would like applications on my home machine to
> think it has the ip address of my machine at work (say 4.3.2.1).
> I would then like to forward a specific port of my home machine to my work
> machine, and then forward that to a license server at work. Thus,
> application thinks I'm at work, license server thinks Im at work, but Im
> really sitting comfortably in my own home.
> 
> Is this possible? Should this be done with netfilter/iptables or should I
> be looking at another option?
> 
> If it is possible, I could get some extra work done at home, without
> having to use certain graphics intensive programs over a tunneled X
> connection to my work machine(which is extreamly slow).
> 
> A diagram:
> 
>         LinuxA                 LinuxB            LinuxC
> |---------HOME---------|     |---Work--|     |-Work Server-|
> |'4.3.2.1' <--> 1.2.3.4|<--->| 4.3.2.1 |<--->|   4.3.2.2   |
> |----------------------|     |---------|     |-------------|
> 
> 
> Thanks for any help/suggestions
> 

Some ideas:

You can assign multiple ip to one interface like this:
ifconfig eth0 $IP1 netmask $NETMASK broadcast $BROADCAST
ifconfig eth0:1 $IP2 netmask $NETMASK broadcast $BROADCAST
etc...

Then you can use SNAT and DNAT to fool with the IP addresses that or
coming in and going out

Michael Garriss


  reply	other threads:[~2003-10-22 17:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 17:08 work ip address at home Brent Gregersen
2003-10-22 17:18 ` Michael Garriss [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-22 17:41 Daniel Chemko
2003-10-22 18:15 ` Brent Gregersen
2003-10-22 18:21   ` Antony Stone
2003-10-23  2:35   ` Jim Carter
2003-10-23  3:20     ` Brent Gregersen
2003-10-22 18:31 Daniel Chemko
2003-10-23 18:26 Daniel Chemko

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=20031022171853.GA2010@frodo.uglymonkeys.com \
    --to=mgarriss@uglymonkeys.com \
    --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