View previous topic :: View next topic |
Author |
Message |
The Sentinel Tux's lil' helper
Joined: 10 Sep 2002 Posts: 76
|
Posted: Mon Feb 24, 2003 7:08 am Post subject: How to get conditional routing working |
|
|
This might get a bit volumous, but please be patient!
I currently have three machines on my home network:
1) A firewall/router running IPCop (to which the cable modem is connected).
2) A Windows 2000 PC (used as a workstation).
3) My Gentoo box (dual-booting with Windows 2000)
The Windows and Gentoo boxes access the internet via the IPCop box.
On occasions I need to dial into work and do some sysadmin stuff.
The firewall at work is pretty tight and cannot be accessed remotely via the internet, only from an internal I.P.
To access it, I have to restart and boot the Gentoo box into Windows, connect via dial-up networking to work, and then run Tight VNC from it to control boxes at work.
Is there any way of configuring my Gentoo box so that it can dial out to work when needed.
My home network is on 192.168.0.* and work is on 10.0.*.*
How I am imagining this would work is I have an entry in the routing table on my PC to point to the Gentoo box for access to 10.0.x.x.
When the Gentoo box detects this, it would automatically dial-up and connect to work.
I could then do the sysadmin stuff from my Windows PC instead of having to reboot the Gentoo box.
I know people are going to say that I should be running Gentoo on the workstation or I should connect to an X desktop on the Gentoo box, but I use applications that don't have Linux equivalents.
If you've read down to here thanks.
Hoping someone can enlighten me,
TS. _________________ who | grep -i blonde | talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep
__________________________
#find / -user your -name base -exec "chown us $" |
|
Back to top |
|
|
The Sentinel Tux's lil' helper
Joined: 10 Sep 2002 Posts: 76
|
Posted: Tue Feb 25, 2003 9:32 am Post subject: |
|
|
Nobody???? _________________ who | grep -i blonde | talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep
__________________________
#find / -user your -name base -exec "chown us $" |
|
Back to top |
|
|
psp Tux's lil' helper
Joined: 06 Aug 2002 Posts: 120 Location: Cape Town, South Africa
|
Posted: Tue Feb 25, 2003 2:08 pm Post subject: |
|
|
Umm... I read through this quickly and my brain is not running at full coffee, but I'll give it a shot.
I'm presuming when you dial, work gives your modem an ip in the 10.0.0.x range.
Could you not bring up an ip on the Gentoo box in the 192.168.1.x range. Add another to the Win2K box. Install and configure wvdial + diald on the Gentoo box to listen on the 192.168.1.x interface. That way, any traffic from your home lan on the ip address range 192.168.1.x will force the Gentoo box to dial. Make sure that ip forwarding is enabled on the Gentoo box (you can probably do this on dial with ifup/ifdown) and setup some iptables rules to NAT to the modem's interface (10.0.0.x - use the interface name).
Is this what you want?
Hope it helps... |
|
Back to top |
|
|
|