Install multiport module on iptables

Posted by tarteauxfraises on Server Fault See other posts from Server Fault or by tarteauxfraises
Published on 2013-10-20T07:38:08Z Indexed on 2013/10/20 9:57 UTC
Read the original article Hit count: 219

Filed under:
|

I'am trying to install "fail2ban" on Cubidebian, a Debian port for Cubieboard (A raspberry like board).

The following rule failed due to "-m multiport --dports ssh" options (It works, when i run manually the command without multiple options).

$ iptables -I INPUT -p tcp -m multiport --dports ssh -j fail2ban-ssh"
iptables: No chain/target/match by that name.

When i make a cat on "/proc/net/ip_tables_matches", i see that multiport module is not loaded:

$ cat /proc/net/ip_tables_matches
u32
time
string
statistic
state
owner
pkttype
mac
limit
helper
connmark
mark
ah
icmp
socket
socket
quota2
policy
length
iprange
ttl
hashlimit
ecn
udplite
udp
tcp

What can i do to compile or to enable the multiport module?

Thanks in advance for your help

© Server Fault or respective owner

Install multiport module on iptables

Posted by tarteauxfraises on Super User See other posts from Super User or by tarteauxfraises
Published on 2013-10-20T07:38:08Z Indexed on 2013/10/20 15:58 UTC
Read the original article Hit count: 219

Filed under:

I'am trying to install "fail2ban" on Cubidebian, a Debian port for Cubieboard (A raspberry like board).

The following rule failed due to "-m multiport --dports ssh" options (It works, when i run manually the command without multiple options).

$ iptables -I INPUT -p tcp -m multiport --dports ssh -j fail2ban-ssh"
iptables: No chain/target/match by that name.

When i make a cat on "/proc/net/ip_tables_matches", i see that multiport module is not loaded:

$ cat /proc/net/ip_tables_matches
u32
time
string
statistic
state
owner
pkttype
mac
limit
helper
connmark
mark
ah
icmp
socket
socket
quota2
policy
length
iprange
ttl
hashlimit
ecn
udplite
udp
tcp

The result of iptables -L -n -v command :

$ iptables -L -n -v
Chain INPUT (policy ACCEPT 6 packets, 456 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 3 packets, 396 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain fail2ban-apache (0 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain fail2ban-ssh (0 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0 

What can i do to compile or to enable the multiport module?

Thanks in advance for your help

© Super User or respective owner

Related posts about iptables

Related posts about fail2ban