Iptables config

From: Benoit LEROYER (benoit@gide.net)
Date: 05/17/02


From: Benoit LEROYER <benoit@gide.net>
Date: Fri, 17 May 2002 12:17:39 +0200


I have 2 servers

192.168.10.20 with iptables configured
and
192.168.10.10

i would like open only ssh protocol for 192.168.10.10 on 192.168.10.20

if i configure like this, it's not ok
iptables -A INPUT -i eth1 -p tcp -m state --state ESTABLISHED --source
192.168.10.10 --dport 22 -j ACCEPT
iptables -A OUTPUT -o eth1 -p tcp --sport 22 -m state -state ESTABLISHED
- j ACCEPT

but if i delete -m state --state ESTABLISHED in input chain is ok

What have i to do ?

All exemples i've seen on web use -m state --state ESTABLISHED in INPUT
chain



Relevant Pages

  • Iptables config
    ... I have 2 servers ... i would like open only ssh protocol for 192.168.10.10 on 192.168.10.20 ... but if i delete -m state --state ESTABLISHED in input chain is ok ... All exemples i've seen on web use -m state --state ESTABLISHED in INPUT ...
    (comp.os.linux.security)
  • Re: Iptables config
    ... On Fri, 17 May 2002, Benoit LEROYER wrote: ... >I have 2 servers ... >i would like open only ssh protocol for 192.168.10.10 on 192.168.10.20 ... You are aware that you can use hostnames and service/port names in the rules, ...
    (comp.os.linux.security)
  • Re: Iptables config
    ... On Fri, 17 May 2002, Benoit LEROYER wrote: ... >I have 2 servers ... >i would like open only ssh protocol for 192.168.10.10 on 192.168.10.20 ... You are aware that you can use hostnames and service/port names in the rules, ...
    (comp.os.linux.security)