How to restrict LAN & WAN access with iptables Posted by mailliwal@reddit | linux | View on Reddit | 1 comments [removed]
[-] mailliwal@reddit (OP) Since I have tried below but clients still available to access like 192.168.1.80:8080 ​ * LAN `iptables -A $CHAIN_NAME -s 10.123.0.0/24 -i wg0 -d 192.168.1.83 -p tcp --destination-port 443 -j ACCEPT` `iptables -A $CHAIN_NAME -s 10.123.0.0/24 -i wg0 -d 192.168.1.93 -p udp --destination-port 53 -j ACCEPT` ​ * WAN `iptables -A $CHAIN_NAME -s 10.123.0.0/24 -i wg0 -d 0.0.0.0/0 -p tcp -m multiport --destination-port 80,443 -j ACCEPT` ​ * DROP `iptables -A $CHAIN_NAME -i wg0 -j DROP` Reply Submit
1 Comments
mailliwal@reddit (OP)