LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   trusted connections (https://www.linuxquestions.org/questions/linux-security-4/trusted-connections-140408/)

dominant 01-30-2004 12:25 PM

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

dominant 01-31-2004 06:42 AM

Any ideas?

ugge 02-02-2004 05:07 PM

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.


All times are GMT -5. The time now is 02:16 AM.