I have a Mikrotik RB750 router that Socks server is configured on it. It has a interface in my LAN and another one in WAN with public IP address. I want to limit access to it from LAN. It seems that some people has found it and using it form WAN!!!
Open WinBox . Go to IP > Socks > Access . The Socks Access window is similar to filter rule window. Default action in Socks Access is accept. This means that if no rule get matched, socks server accept that connection.
Now add a rule with accept action your LAN IP addresses range as its Src Address. Then add a rule with deny action. Left other field unchanged. This rule guaranty denying of any socks request other than your LAN IP addresses.
Open
WinBox
. Go to IP > Socks > Access . The Socks Access window is similar to filter rule window. Default action in Socks Access isaccept
. This means that if no rule get matched, socks server accept that connection.Now add a rule with
accept
action your LAN IP addresses range as itsSrc Address
. Then add a rule withdeny
action. Left other field unchanged. This rule guaranty denying of any socks request other than your LAN IP addresses.If socks server is running on port
1080
and your LAN IP address range is192.168.10.0/24
use this in Mikrotik terminal:This command filters traffic by Mikrotik firewall.