so port 873 is going out? my default policy for OUTPUT is accept with no rules. wich port should I accept as the INPUT?

On 3/18/06, Benno Schulenberg <[EMAIL PROTECTED]> wrote:
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
--
[email protected] mailing list


Reply via email to