Quick iptables question...
Ok, I want to use rsync, but I want to be the only one allowed in. So, I do this:
iptables -A INPUT -p tcp --dport rsync -s ! 220.127.116.11 -j REJECT
my thinking is that this will add a rule, where if a packet is going to the rsync port, and did not come from my IP (18.104.22.168), it will be rejected. However, this rejects ALL packets, whether from my IP or not.
iptables -L gives the following:
Chain INPUT (policy ACCEPT)
target prot opt source destination
REJECT tcp -- !alb-24-92-43-34.nycap.rr.com anywhere tcp dpt:rsync reject-with icmp-port-unreachable
If it matters, I'm using Debian woody r1 with the 2.4bf kernel, upgraded to the newest version (2.4.18-bf2.4). Thanks.