hwdsl2 / wireguard-install

WireGuard VPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE and Raspberry Pi OS
MIT License
1.03k stars 246 forks source link

Domens config #4

Closed svatrous closed 1 year ago

svatrous commented 1 year ago

Hi, thank you so much for this script. Can you please give me an advice how can I config VPN to work only with special sites?

Thank you again

hwdsl2 commented 1 year ago

@svatrous Hello! This feature is not supported in this project.

rim99 commented 1 year ago

To enable VPN for specific site only, it can be done by tunning iptables.

For example, customize this line to meet your requirement

https://github.com/hwdsl2/wireguard-install/blob/005b15b60e1a38f838f289f1395f6601ed3fd0bb/wireguard-install.sh#L677

I've tested this on my system.

@svatrous