LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



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

Rep: Reputation: Disabled
Lightbulb Connection profiling


Hi,
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, 09:58 AM   #2
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 161

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.
 
  


Reply


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


All times are GMT -5. The time now is 06:31 PM.

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