LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2016, 07:01 PM   #1
mr.simo
Member
 
Registered: Feb 2010
Posts: 78

Rep: Reputation: 0
Restrict connections to 3G modem device to a few trusted hosts


Hi,

I have a machine which can be accessible through a 3G modem (ppp0 interface) with a public IP.

Now I would like to restrict the connections to the device just to a few number of hosts, all from the same network, maybe two different networks, no more.

So I want to deny every incoming and outgoing connection from and to unwanted hosts, while allowing the trusted hosts to connect.

The main services that will be used will be: webservice and ssh.
I thought to properly configure the firewall, but I am not sure this is the best and right solution.

What is the best network setup solution to my problem ?

Thanks in advance.
 
Old 05-13-2016, 01:55 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,487

Rep: Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557
Quote:
Originally Posted by mr.simo View Post
I thought to properly configure the firewall, but I am not sure this is the best and right solution.
Firewall and only allow hosts and ports that you want through.
 
  


Reply

Tags
networking, security recommendations


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
OpenLDAP bespoke schema to use 'ismemberof' to restrict user access to hosts stuart_cherrington Linux - General 3 05-04-2010 02:42 AM
[SOLVED] Restrict by using hosts.deny masatheesh Linux - Security 3 11-22-2009 11:11 PM
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
can't restrict sshd access through hosts.allow and hosts.deny but was working earlier farhan Linux - Security 4 04-18-2008 07:41 AM
How to restrict only one user can use telnet in /etc/hosts.deny? lzyking Linux - Software 2 02-12-2003 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration