Hello, I currently have my CoreElec device as an internet access point using the native tethered-internet sharing capability running.
I’m trying to forward all connections to a proxy server but when trying to apply the iptables rules I’m getting the below.
Does anyone know what is causing this?
CoreELEC:~ # iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables: No chain/target/match by that name.
for reference:
CoreELEC:~ # iptables -t nat -S
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-N DOCKER
-N connman-POSTROUTING
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
-A POSTROUTING -j connman-POSTROUTING
-A DOCKER -i docker0 -j RETURN
-A connman-POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
I previously in my machinations managed to get a different result saying Iptables doesn’t recognize --to-ports
Any thoughts?