Hallo,
Laatst had ik topic over dat me ping erg vaak omhoog ging, en kreeg van iemand een paar iptables regels die het zouden moeten oplossen.
dit kreeg ik van hem:
En nu ziet mijn iptables scriptje er zo uit:
(ik nam aan dat \ weg moeste)
Maar krijg dan als foutmelding:
Wat doe ik fout?
Laatst had ik topic over dat me ping erg vaak omhoog ging, en kreeg van iemand een paar iptables regels die het zouden moeten oplossen.
dit kreeg ik van hem:
code:
1
2
3
4
5
6
7
8
9
10
| iptables -A input -p tcp --dport www -j ACCEPT \
-m state --state NEW -m limit --limit 1/s --limit-burst 5"
iptables -A input -p tcp --dport www -j ACCEPT \
-m state --state ESTABLISHED
iptables -A input -p tcp --dport www -j LOG \
-m state --state NEW
iptables -A input -p tcp --dport www -j DROP
iptables -A output -p tcp --sport www -j ACCEPT \
-m state --state ESTABLISHED |
En nu ziet mijn iptables scriptje er zo uit:
(ik nam aan dat \ weg moeste)
code:
1
2
3
4
5
6
7
8
9
10
| webserver:~# cat /etc/init.d/iptables echo -ne 'starting IPtables...'; iptables -F; iptables -A FORWARD -i eth1 -j ACCEPT; iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE; iptables -A input -p tcp --dport www -j ACCEPT -m state --state NEW -m limit --limit 1/s --limit-burst 5 iptables -A input -p tcp --dport www -j ACCEPT -m state --state ESTABLISHED iptables -A input -p tcp --dport www -j LOG -m state --state NEW iptables -A input -p tcp --dport www -j DROP iptables -A output -p tcp --sport www -j ACCEPT -m state --state ESTABLISHED |
Maar krijg dan als foutmelding:
code:
1
2
3
4
5
| starting IPtables...iptables: No chain/target/match by that name iptables: No chain/target/match by that name iptables: No chain/target/match by that name iptables: No chain/target/match by that name iptables: No chain/target/match by that name |
Wat doe ik fout?