Re: work ip address at home

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux