Ak nastavím vo Firehole "client all accept", tak sa cez Linuxdc pripojím normálne na huby. Ale keď skúšam povoliť len "client dcpp accept", potom sa nespojím so žiadnym hubom. Služby dcc aj dcpp majú definované client-porty ako default. Keď definujem novú službu s nejakými client-portami tak, my firehol vyhodí chybu:
root@fero:/etc/firehol# firehol restart
--------------------------------------------------------------------------------
ERROR : # 1.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internet_linuxdc_c13 -p tcp --sport tcp/27448 --dport 27448 -m state --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid TCP port/service `tcp/27448' specified
Try `iptables -h' or 'iptables --help' for more information.
Kde robím chybu?
--------------------------------------------------------------------------------
ERROR : # 2.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internet_linuxdc_c13 -p tcp --sport 27448 --dport tcp/27448 -m state --state ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid TCP port/service `tcp/27448' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 3.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internet_linuxdc_c13 -p tcp --sport udp/15061 --dport 27448 -m state --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid TCP port/service `udp/15061' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 4.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internet_linuxdc_c13 -p tcp --sport 27448 --dport udp/15061 -m state --state ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid TCP port/service `udp/15061' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 5.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internet_linuxdc_c13 -p udp --sport tcp/27448 --dport 15061 -m state --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid UDP port/service `tcp/27448' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 6.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internet_linuxdc_c13 -p udp --sport 15061 --dport tcp/27448 -m state --state ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid UDP port/service `tcp/27448' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 7.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A out_internet_linuxdc_c13 -p udp --sport udp/15061 --dport 15061 -m state --state NEW\,ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid UDP port/service `udp/15061' specified
Try `iptables -h' or 'iptables --help' for more information.
--------------------------------------------------------------------------------
ERROR : # 8.
WHAT : A runtime command failed to execute (returned error 2).
SOURCE : line INIT of /etc/firehol/firehol.conf
COMMAND : /sbin/iptables -t filter -A in_internet_linuxdc_c13 -p udp --sport 15061 --dport udp/15061 -m state --state ESTABLISHED -j ACCEPT
OUTPUT :
iptables v1.3.5: invalid UDP port/service `udp/15061' specified
Try `iptables -h' or 'iptables --help' for more information.
Stopped: Couldn't activate new firewall.
FireHOL: Restoring old firewall: OK