1
vote
Bind nginx to vpn address only
There is also an option to make it through NGINX configs, here it is:
location / {
allow 45.43.23.0/24; # Change this to appropriate range
deny all;
}
- 36
1
vote
Accepted
Bind nginx to vpn address only
If you are using UFW, you can just simply allow port access only for specific ranges. Here is an example:
ufw allow from 172.29.70.0/24 to any port 443 proto tcp comment "HTTPS only zerotier"...
- 36
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
vpn × 5008openvpn × 858
networking × 691
ipsec × 467
linux × 443
routing × 407
windows × 395
cisco × 257
iptables × 251
pptp × 244
ubuntu × 237
strongswan × 205
windows-server-2008 × 199
site-to-site-vpn × 191
amazon-web-services × 184
firewall × 165
azure × 163
domain-name-system × 160
ssh × 148
cisco-asa × 145
l2tp × 141
rras × 140
nat × 137
security × 121
cisco-vpn × 113