virtualization:proxmox:nordvpn

NordVPN in a Proxmox container

$ sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh)

proxmox host:

$ nano /etc/pve/lxc/106.conf
< /etc/pve/lxc/106.conf >
	lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

proxmox container:

$ crontab -e
	@reboot mkdir -p /dev/net && mknod /dev/net/tun c 10 200
$ reboot
# Allow LAN access while tunneled
$ iptables -I INPUT -j ACCEPT -s 192.168.35.0/24
$ iptables -I OUTPUT -j ACCEPT -s 192.168.35.0/24
$ iptables -L
	Chain INPUT (policy ACCEPT)
	target     prot opt source               destination         
	ACCEPT     all  --  192.168.35.0/24      anywhere            
	ACCEPT     all  --  unn-212-102-44-38.cdn77.com  anywhere            
	DROP       all  --  anywhere             anywhere            
	Chain FORWARD (policy ACCEPT)
	target     prot opt source               destination         
	Chain OUTPUT (policy ACCEPT)
	target     prot opt source               destination         
	ACCEPT     all  --  192.168.35.0/24      anywhere            
	ACCEPT     all  --  anywhere             unn-212-102-44-38.cdn77.com 
	DROP       all  --  anywhere             anywhere   
# verify public ip is different
$ curl ifconfig.me
  • virtualization/proxmox/nordvpn.txt
  • Last modified: 2023/07/03 01:26
  • by hli