diff options
author | terminaldweller <devi@terminaldweller.com> | 2025-01-12 04:27:05 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2025-01-12 04:27:05 +0000 |
commit | 3d2402766095a2fb887bb15e43e9c48323091e99 (patch) | |
tree | f7c25a8f2a4f1f464e477a9ca6a57b9582bf4a85 | |
parent | added vpn4 (diff) | |
download | vagrantboxes-3d2402766095a2fb887bb15e43e9c48323091e99.tar.gz vagrantboxes-3d2402766095a2fb887bb15e43e9c48323091e99.zip |
-rw-r--r-- | vpn/Vagrantfile | 3 | ||||
-rw-r--r-- | vpn2/Vagrantfile | 3 | ||||
-rw-r--r-- | vpn3/Vagrantfile | 3 | ||||
-rw-r--r-- | vpn4/Vagrantfile | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/vpn/Vagrantfile b/vpn/Vagrantfile index 53dd5d0..19731a7 100644 --- a/vpn/Vagrantfile +++ b/vpn/Vagrantfile @@ -23,6 +23,7 @@ Vagrant.configure('2') do |config| # config.vm.synced_folder './share', '/home/vagrant/nfs', type: 'nfs', nfs_version: 4, nfs_udp: false config.vm.provider 'libvirt' do |libvirt| + libvirt.autostart = true libvirt.default_prefix = 'vpn-' libvirt.driver = 'kvm' libvirt.memory = '128' @@ -59,6 +60,7 @@ Vagrant.configure('2') do |config| modprobe tun echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/ipv4.conf sysctl -p /etc/sysctl.d/ipv4.conf + rc-update add openvpn boot rc-service openvpn start || true sleep 1 SHELL @@ -93,6 +95,7 @@ Vagrant.configure('2') do |config| ufw allow out on eth0 to 185.204.1.175 port 443 ufw allow in on eth0 from 185.204.1.175 port 443 + rc-update add ufw boot echo y | ufw enable SHELL end diff --git a/vpn2/Vagrantfile b/vpn2/Vagrantfile index 3021bd1..6631b6f 100644 --- a/vpn2/Vagrantfile +++ b/vpn2/Vagrantfile @@ -23,6 +23,7 @@ Vagrant.configure('2') do |config| # config.vm.synced_folder './share', '/home/vagrant/nfs', type: 'nfs', nfs_version: 4, nfs_udp: false config.vm.provider 'libvirt' do |libvirt| + libvirt.autostart = true libvirt.default_prefix = 'vpn2-' libvirt.driver = 'kvm' libvirt.memory = '128' @@ -59,6 +60,7 @@ Vagrant.configure('2') do |config| modprobe tun echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/ipv4.conf sysctl -p /etc/sysctl.d/ipv4.conf + rc-update add openvpn boot rc-service openvpn start || true sleep 1 SHELL @@ -79,6 +81,7 @@ Vagrant.configure('2') do |config| ufw allow out on eth0 to 198.54.133.66 port 1196 ufw allow in on eth0 from 198.54.133.66 port 1196 + rc-update add ufw boot echo y | ufw enable SHELL end diff --git a/vpn3/Vagrantfile b/vpn3/Vagrantfile index f952273..848eb70 100644 --- a/vpn3/Vagrantfile +++ b/vpn3/Vagrantfile @@ -23,6 +23,7 @@ Vagrant.configure('2') do |config| # config.vm.synced_folder './share', '/home/vagrant/nfs', type: 'nfs', nfs_version: 4, nfs_udp: false config.vm.provider 'libvirt' do |libvirt| + libvirt.autostart = true libvirt.default_prefix = 'vpn3-' libvirt.driver = 'kvm' libvirt.memory = '128' @@ -59,6 +60,7 @@ Vagrant.configure('2') do |config| modprobe tun echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/ipv4.conf sysctl -p /etc/sysctl.d/ipv4.conf + rc-update add openvpn boot rc-service openvpn start || true sleep 1 SHELL @@ -83,6 +85,7 @@ Vagrant.configure('2') do |config| ufw allow out on eth0 to 185.213.154.132 port 1197 ufw allow in on eth0 from 185.213.154.132 port 1197 + rc-update add ufw boot echo y | ufw enable SHELL end diff --git a/vpn4/Vagrantfile b/vpn4/Vagrantfile index 3c61817..f09af05 100644 --- a/vpn4/Vagrantfile +++ b/vpn4/Vagrantfile @@ -23,6 +23,7 @@ Vagrant.configure('2') do |config| # config.vm.synced_folder './share', '/home/vagrant/nfs', type: 'nfs', nfs_version: 4, nfs_udp: false config.vm.provider 'libvirt' do |libvirt| + libvirt.autostart = true libvirt.default_prefix = 'vpn4-' libvirt.driver = 'kvm' libvirt.memory = '128' @@ -59,6 +60,7 @@ Vagrant.configure('2') do |config| modprobe tun echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/ipv4.conf sysctl -p /etc/sysctl.d/ipv4.conf + rc-update add openvpn boot rc-service openvpn start || true sleep 1 SHELL @@ -83,6 +85,7 @@ Vagrant.configure('2') do |config| ufw allow out on eth0 to 198.54.132.66 port 1302 ufw allow in on eth0 from 198.54.132.66 port 1302 + rc-update add ufw boot echo y | ufw enable SHELL end |