amplatfus
Senior Member
Hi all,
I am trying to restrict access to router external USB storage with SAMBA active.
I tried using below rules in firewall, but nothing worked
Could you please provide some things to try?
PS: I mention that I created also a separate VLAN for this IP.
Thank you so much,
amplatfus
I am trying to restrict access to router external USB storage with SAMBA active.
I tried using below rules in firewall, but nothing worked
Could you please provide some things to try?
Code:
iptables -A FORWARD -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 137:139 -j DROP
iptables -A FORWARD -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 137:139 -j DROP
iptables -A FORWARD -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 445 -j DROP
iptables -A FORWARD -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 445 -j DROP
iptables -A OUTPUT -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 137:139 -j DROP
iptables -A OUTPUT -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 137:139 -j DROP
iptables -A OUTPUT -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 445 -j DROP
iptables -A OUTPUT -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 445 -j DROP
iptables -A INPUT -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 137:139 -j DROP
iptables -A INPUT -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 137:139 -j DROP
iptables -A INPUT -s 172.16.0.242 -d 172.16.0.1 -p tcp --sport 445 -j DROP
iptables -A INPUT -s 172.16.0.242 -d 172.16.0.1 -p udp --sport 445 -j DROP
PS: I mention that I created also a separate VLAN for this IP.
Thank you so much,
amplatfus