Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get conditional routing working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The Sentinel
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2002
Posts: 76

PostPosted: Mon Feb 24, 2003 7:08 am    Post subject: How to get conditional routing working Reply with quote

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
View user's profile Send private message
The Sentinel
Tux's lil' helper
Tux's lil' helper


Joined: 10 Sep 2002
Posts: 76

PostPosted: Tue Feb 25, 2003 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
psp
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2002
Posts: 120
Location: Cape Town, South Africa

PostPosted: Tue Feb 25, 2003 2:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum