PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : xMule iptables rules?



keiner_1
07.09.03, 23:14
Hallo,

ich habe seit langem wieder mal nen xMule am Laufen... jedoch gelingen mir die Iptables rules nicht, bekomme immer eine Lowid und kann von niemandem saugen... es handelt sich um eine Single Workstation.

1. Versuch:
# meine Iptables Rules
#iptables -A INPUT -i eth0 -m state --state NEW -p tcp --dport 4661 -j ACCEPT
#iptables -A INPUT -i eth0 -m state --state NEW -p tcp --dport 4662 -j ACCEPT
#iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 4665 -j ACCEPT
#iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 4666 -j ACCEPT
#iptables -A OUTPUT -o eth0 -m state --state NEW -p tcp --dport 4661 -j ACCEPT
#iptables -A OUTPUT -o eth0 -m state --state NEW -p udp --dport 4662 -j ACCEPT
#iptables -A OUTPUT -o eth0 -m state --state NEW -p udp --dport 4665 -j ACCEPT
#iptables -A OUTPUT -o eth0 -m state --state NEW -p udp --dport 4666 -j ACCEPT

2. Versuch:
iptables -A OUTPUT -o eth0 -m state --state NEW -p tcp -m owner --pid-owner $xmule -j ACCEPT
iptables -A OUTPUT -o eth0 -m state --state NEW -p udp -m owner --pid-owner $xmule -j ACCEPT
iptables -A INPUT -i eth0 -m state --state NEW -p udp -m owner --pid-owner $xmule -j ACCEPT
iptables -A INPUT -i eth0 -m state --state NEW -p tcp -m owner --pid-owner $xmule -j ACCEPT

mit Error:
iptables: Invalid argument
iptables: Invalid argument


greez
adme

mrsuicide
08.09.03, 05:06
iptables -t filter -A INPUT -i eth0 -p tcp --dport 4672 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -t filter -A INPUT -i eth0 -p udp --dport 4672 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

keiner_1
08.09.03, 14:01
wenn ich das richtig sehe, muss ich diese noch bei versuch 1 anhängen?

vielen Dank

greez
adme

emba
08.09.03, 21:56
bei mir reicht:

iptables -I INPUT 1 -p tcp --dport 4662 -i ppp0 -j ACCEPT
iptables -A OUTPUT -m state --state related,established -j ACCEPT

greez