IPTables + Docker ST

Hello might be usefull:

to allow access to selfhosted docker seatable from only ip xxx.xxx.xxx.xxx and ip yyy.yyy.yyy.yyy

replace port 8009 with your SeaTable port

#public_eth=eth0
#iptables -I FORWARD 1 -i $public_eth -p tcp --dport 8009 -j REJECT
#iptables -I FORWARD 1 -i $public_eth -s xxx.xxx.xxx.xxx -p tcp --dport 8009 -j ACCEPT
#iptables -I FORWARD 1 -i $public_eth -s yyy.yyy.yyy.yyy -p tcp --dport 8009 -j ACCEPT

2 Likes