LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-30-2004, 12:25 PM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
trusted connections


I am going to user iptables in my SuSE 9 in order to secure my system as much as i can.

One machine is going to get connected with my machine.

For example 192.168.1.4 it's the source

then my iptables should be

# iptables -A INPUT -s 192.168.1.4 -p tcp -j ACCEPT
# iptables -A INPUT -s ! 192.168.1.4 -p tcp -j DROP

Are the above commands correct?

I want none can touch my server except 192.168.1.4
 
Old 01-31-2004, 06:42 AM   #2
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Any ideas?
 
Old 02-02-2004, 05:07 PM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Those commands will accept any tcp connections originating from 192.168.1.4
Connections originating from another IP-address would be dropped.

This would protect your local computer from incoming connections. If this is a router/multihomed computer you will have to make other rules as well.
 
  


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
trusted servers dabash Linux - Networking 4 02-21-2005 11:37 PM
trusted servers dabash Linux - Networking 5 02-11-2005 05:55 PM
trusted user uerden Linux - Security 1 02-16-2004 03:52 PM
trusted computing tincat2 General 13 12-06-2003 05:15 AM
Trusted system juno Linux - General 1 12-24-2002 05:43 AM


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