Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Execute cron script over specified network interface
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
stewart_butler
n00b
n00b


Joined: 09 May 2008
Posts: 16

PostPosted: Wed Jul 02, 2008 7:34 pm    Post subject: Execute cron script over specified network interface Reply with quote

At school, I have two networks: ethernet, and wireless. The wireless network requires authentication; after a period of inactivity, it logs you out of the authenticated MAC address pool, and you have to log back in. This is extremely annoying if you are switching between hardline and wireless as much as I do on my laptop.

I created a login script using Python, and run it on cron. However, at home the connection to the wireless network is maintained so that as soon as the hardline is unplugged the computer switches immediately to the wireless network. Due to the inactivity protocol, though, this isn't viable at school. Also, if you are not connected VIA the wireless network, the login script does not work (since your IP is out of the wireless range.)

Is there some way to send a ping packet, or run a cron script, through the wireless network, even when all other connections are running through the ethernet connection? Or otherwise specifying a network interface for a connection? I haven't been able to locate any information on it, but it would be helpful if anyone has a hint.

Stewart
_________________
Sager NP2090 (Compal IFL90), Core 2 Duo T770 2.4GHz, 320gb SATA 5200rpm, 2GB RAM, Gentoo

AMD 64 X2 4400+, 3GB ram, 1x80gb IDE, 8x320GB SATA, Fedora 8

AMD Athlon XP, 1GB ram, IPCOP

et al.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Thu Jul 03, 2008 4:15 am    Post subject: Reply with quote

Consider your routing tables. If the wired and wireless networks have any divergence in the routing tables it would not be difficult to ping something in that unique range.
Back to top
View user's profile Send private message
stewart_butler
n00b
n00b


Joined: 09 May 2008
Posts: 16

PostPosted: Thu Jul 03, 2008 3:29 pm    Post subject: Reply with quote

So you're saying set up a range of addresses in my firewalls that separates the wired and wireless networks, then ping something through that?
_________________
Sager NP2090 (Compal IFL90), Core 2 Duo T770 2.4GHz, 320gb SATA 5200rpm, 2GB RAM, Gentoo

AMD 64 X2 4400+, 3GB ram, 1x80gb IDE, 8x320GB SATA, Fedora 8

AMD Athlon XP, 1GB ram, IPCOP

et al.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Jul 04, 2008 1:50 am    Post subject: Reply with quote

The objective is to get the laptop to route traffic to an interface, actually having anything respond may well be optional. Unless the activity timeout only tracks successful connections, use a block of addresses which you know to be vacant.
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