I have blocked team viewer server:
Code: Select all
chain=input action=drop src-address=178.77.120.0/24 log=yes log-prefix=""
chain=input action=drop src-address=178.77.120.0/24 log=yes log-prefix=""
I don't think that rule will have any effect. First, the rule is on the input chain, which pertains to connections to your router, not connections to hosts on the LAN. Second, your default rules should already be dropping all external connections to the input chain, unless you have explicitly allowed them.Hi,
I have blocked team viewer server:How can I allow only one IP address to use teamviewer ?Code: Select allchain=input action=drop src-address=178.77.120.0/24 log=yes log-prefix=""
This rule didn`t block team viewer. Only when I add team viewer to regexp it block it, but again for all networkI don't think that rule will have any effect. First, the rule is on the input chain, which pertains to connections to your router, not connections to hosts on the LAN. Second, your default rules should already be dropping all external connections to the input chain, unless you have explicitly allowed them.Hi,
I have blocked team viewer server:How can I allow only one IP address to use teamviewer ?Code: Select allchain=input action=drop src-address=178.77.120.0/24 log=yes log-prefix=""
Also, consider that the default firewall rules will allow an incoming connection (established,related) from that IP range, if an outgoing connection is initiated from a host inside the LAN.
To block team viewer for all but one specific LAN IP, I believe you could:
1) Add a filter rule to the forward chain to allow connections to dst-address=178.77.120.0/24 from the src-address of your specific LAN IP, and
2) Add a second rule below that to the forward chain to block all connections to dst-address=178.77.120.0/24.
It's not clear what rule you are referring to when you write "this rule."This rule didn`t block team viewer. Only when I add team viewer to regexp it block it, but again for all network
Exactly, as @van9018 indicated, there must be a list of IP address.It's not clear what rule you are referring to when you write "this rule."This rule didn`t block team viewer. Only when I add team viewer to regexp it block it, but again for all network
In any case, the rule you wrote (and my response) is based on your assumption that all team viewer servers are on the 178.77.120.0/24 subnet. But, as @van9018 indicated, this may not be the case, and there is no set list of IP addresses, so you cannot easily block by IP address.