D
Deleted member 62525
Guest
I used this very good article (full credit goes to the author) to isolate my LAN port 4 (eth1) on RT-AC86U with some success. I wanted to have main computer on separate segment and the rest of the devices on main router segment. It is working fairly well allowing access to internet, my Synology , router etc, except for the fact that when I let the computer sleep for a while the connection to internet or the network for that matter is lost. Ping or dig does not work. It takes about 10 seconds to regain the connection.
Here are my iptables rules for new bridge br100.
# Allow new incoming connections from br100 to router
iptables -I INPUT -i br100 -m state --state NEW -j ACCEPT
# Forbid packets from br100 to be forwarded to other interfaces
iptables -I FORWARD -i br100 -j DROP
# But allow packet forwarding inside br100
iptables -I FORWARD -i br100 -o br100 -j ACCEPT
# Allow access to Synology between VLAN's - PMS
iptables -I FORWARD -i br100 -p tcp --match multiport -d 192.168.50.10 --dports 31200 -j ACCEPT
# Allow packet forwarding between br100 and eth0 (WAN)
iptables -I FORWARD -i br100 -o eth0 -j ACCEPT
# Allow one-way traffic from br0 to br100
iptables -I FORWARD -i br0 -o br100 -j ACCEPT
iptables -I FORWARD -i br100 -o br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# NAT inside 192.168.150.0/24 on br100
iptables -t nat -A POSTROUTING -s 192.168.150.0/24 -d 192.168.150.0/24 -o br100 -j MASQUERADE
Am I missing any rules that would resolve this connection issues?
Once all is working I can be using internet and access Synology apps without issues. When I lock the computer, and come back in few minutes the connection is lost and it take a while to re-establish.
Here are my iptables rules for new bridge br100.
# Allow new incoming connections from br100 to router
iptables -I INPUT -i br100 -m state --state NEW -j ACCEPT
# Forbid packets from br100 to be forwarded to other interfaces
iptables -I FORWARD -i br100 -j DROP
# But allow packet forwarding inside br100
iptables -I FORWARD -i br100 -o br100 -j ACCEPT
# Allow access to Synology between VLAN's - PMS
iptables -I FORWARD -i br100 -p tcp --match multiport -d 192.168.50.10 --dports 31200 -j ACCEPT
# Allow packet forwarding between br100 and eth0 (WAN)
iptables -I FORWARD -i br100 -o eth0 -j ACCEPT
# Allow one-way traffic from br0 to br100
iptables -I FORWARD -i br0 -o br100 -j ACCEPT
iptables -I FORWARD -i br100 -o br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
# NAT inside 192.168.150.0/24 on br100
iptables -t nat -A POSTROUTING -s 192.168.150.0/24 -d 192.168.150.0/24 -o br100 -j MASQUERADE
Am I missing any rules that would resolve this connection issues?
Once all is working I can be using internet and access Synology apps without issues. When I lock the computer, and come back in few minutes the connection is lost and it take a while to re-establish.