Secure wss connection

Discussion in 'Web Call Server 5' started by Rajesh, Oct 29, 2019.

  1. Rajesh

    Rajesh New Member

    i want to secure my wss
    i want only one ip to access this and ban other ips
  2. Max

    Max Administrator Staff Member

    Good day.
    You can using firewall on your server.
    If you use iptables, you can see the current rules:
    Code:
    sudo iptables-save -t filter
    1. If the set policy ACCEPT (line :INPUT ACCEPT) and there are no other rules:
    Code:
    sudo iptables -A INPUT -p tcp \! -s <Allowed IP address> --dport 8443 -j REJECT
    2. But if the INPUT chain ends with rule REJECT, for example:
    Code:
    -A INPUT -j REJECT ...
    then you need to add rule:
    Code:
    sudo iptables -I INPUT -p tcp -s <Allowed IP address> --dport 8443 -j ACCEPT

Share This Page