Hi all, i own a VPS, and as by checking logs i have found out many unsuccessfull attempts to connect to it, i decided anyway to setup a firewall to discourage intruders. the problem i have is that only access i have to my VPS is via remote ssh, so this limit what i can do (as i cannot say 'block everything except ip coming from xxx address' as my address is assigned dynamically)
to 'prevent' some ip address for connecting to my VPS i setup rules as this
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh DROP tcp -- 61.143.0.0 anywhere
i was wondering if the rule above block traffic coming from 61.143 addresses
Additionally, my VPS is an UBuntu Feisty Fawn server.... i want to figure out if iptables is running but everytime i type
ps aux |grep iptables what i receive is
root 1928 0.0 0.5 2804 720 pts/0 R+ grep iptables
anyone could tell me:
- if my configuration is fine for dropping connection from certain address
- how can i findout if iptables is running
- how do i deal with blocking everything except traffic coming from my ip address @home when my address is assigned dynamically?
thanks in advance and regarsd marco