Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-10-2013, 06:53 AM   #1
LQ Newbie
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Smile Network Connection Profiling- Ubuntu

I am looking for configuration which enables the laptop to identify the network i.e. Office LAN, VPN and Home(Internet) when connected to them respectively. Also required is it opens and blocks certain ports based on the connectivity.
For example i need to enable SSH while i am on office network and block it once i am over the internet.
Is there any way i can get hold of a script around Iptables?

Please help.
Old 04-22-2013, 02:52 PM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
Independently from the script(s) that you want to run when you dis/connect, you could try using "wicd" to manage your connections and their related scripts.
I'm personally not using this feature but I see that when you click on the "properties" button of a specific connection (using the "wicd-gtk" built-in frontend) there is another button called "Scripts" which allows you to configure scripts that are can be triggered on different events:
- before connecting
- after having connected
- before disconnecting
- after having disconnected.

Maybe "NetworkManager" has as well such options, but I'm always using wicd because I find it easier... .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection profiling karnamonkster Linux - Enterprise 1 04-27-2013 08:58 AM
Ubuntu is not seeing my dial-up connection as a network connection jk07 Ubuntu 2 07-12-2012 03:44 AM
[SOLVED] Wireless Network Connection lost in Up-grade from Ubuntu 10.10 to Ubuntu 11.04 laf11540 Linux - Newbie 5 09-05-2011 06:01 PM
Ubuntu 9.04 No Network Connection k_oudom Ubuntu 9 10-09-2009 11:17 PM
Network connection in ubuntu 8.10 cola Ubuntu 1 04-09-2009 12:34 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration