Dan Sheffner wrote:
> iptables -A INPUT -i eth0 -p tcp -d $ip --dport 443 -j ACCEPT
> iptables -A INPUT -i eth0 -p tcp -s 10.1.10.0/24 -d $ip 
> --dport 22 -j ACCEPT

These two are incoming, so --dport is correct.

> iptables -A INPUT -i eth0 -p tcp -s 10.1.10.37 -d  $ip 
> --dport 873 -j ACCEPT

Rsync is outgoing, toward port 873, so the answer is coming back 
from that port: --sport.

Benno
-- 
gentoo-user@gentoo.org mailing list

Reply via email to