Skip to content

Instantly share code, notes, and snippets.

@zi6xuan
Last active July 2, 2023 23:30
Show Gist options
  • Save zi6xuan/3773b586fa9df6ebb2b6ec6fe2dd5016 to your computer and use it in GitHub Desktop.
Save zi6xuan/3773b586fa9df6ebb2b6ec6fe2dd5016 to your computer and use it in GitHub Desktop.
FreshTomato set Smba on the wan
  1. Set the smba custom config
 interfaces = br0
 bind interfaces only = yes
  1. Restart the smba
killall smbd
sleep 5
smbd -D interfaces="br0 vlan2"
  1. Add the FreshTomato firewall rule
iptables -A INPUT -p udp -i vlan2 -m multiport --dports 137,138 -s 192.168.40.0/24 -j ACCEPT
iptables -A INPUT -p tcp -i vlan2 -m multiport --dports 139,445 -s 192.168.40.0/24 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment