insmod: ERROR: could not insert module: Protocol wrong type for socket

819 Views Asked by At

insmod nf_nat_ipv4.ko, but this returns the error:

insmod: ERROR: could not insert module: Protocol wrong type for socket

no logs in dmesg. The OS doesn't have iptables installed. But insmod works for nf_conntrack, nf_nat . Any advice will be much appreciated

1

There are 1 best solutions below

3
Yusdiel Rodriguez On

Ok nf_nat_ipv4 depend of the iptables_nat if insmod give you problem try with this.

modprobe nf_nat_ipv4