ValveSoftware / steamlink-sdk

475 stars 99 forks source link

iptables modules missing #34

Open denisebitca opened 3 years ago

denisebitca commented 3 years ago

Hello,

I am trying to turn my Steam Link into a wifi hotspot, and I'm already most of the way there (I have successfully cross compiled dnsmasq and hostapd), however, I cannot use any of the iptables commands to finalize routing my Ethernet to the wifi.

I keep getting messages of the sort whenever I run iptables:

$ iptables -P FORWARD ACCEPT

iptables v1.4.21: can't initialize iptables table 'filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
$ iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables v1.4.21: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I certainly find it odd to include iptables but to gut it of all of its modules. Is this something I am doing wrong on my end, or is this kernel build missing a few iptables modules?

Before I forget: I just factory reset my Steam Link and I am running the latest build.

EDIT 1:

attempting to modprobe individual parts of the ip_tables module returns this:

$ modprobe iptable_nat

modprobe: 'kernel/net/ipv4/netfilter/nf_nat_ipv4.ko': Protocol wrong type for socket
modprobe: 'kernel/net/ipv4/netfilter/iptable_nat.ko': unknown symbol in module or invalid parameter
$ modprobe nf_nat_ipv4

modprobe: 'kernel/net/ipv4/netfilter/nf_nat_ipv4.ko': Protocol wrong type for socket

Nothing I can do, I think. This is definitely a kernel thing.

denisebitca commented 3 years ago

(false alarm I am really sorry for the email spam)

Update: I compiled a newer version of iptables, to no avail. Still have the same issue with version v1.8.7.