Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


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

Rep: Reputation: Disabled
Lightbulb Connection profiling

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 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.
Old 04-27-2013, 08:58 AM   #2
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 168

Rep: Reputation: 23
You have three options:
1. Create different configurations and load them manually depending on your circumstances.
2. Create a script that detects what the specific circumstances are
3. Use a "third-party" network manager (like Networkmanager in KDE, or Wicd if it is wireless etc.) to create different profiles.

But I'm not sure this is actually a solution.
When you say "enable ssh" you mean enabling SSH _into_ your machine? If so, setup SSH keys and disable root and password logins to permit ONLY your approved SSH clients. This way you don't have to enable/disable SSH all the time. Also, install fail2ban to ban repeated attempts to login by others.


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
Linux profiling: shekar_08 Linux - General 1 01-23-2010 09:49 AM
Profiling: shekar_08 Linux - General 1 01-07-2010 07:11 AM
Function Profiling hai12345 Linux - Software 5 10-20-2008 04:05 AM
Maybe we need more racial profiling right now jaz General 29 07-27-2004 08:42 PM
Profiling in linux bluefiord02 Linux - General 1 04-06-2004 12:25 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:32 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