openvpn poc env

poc | server | client | server-2fa | client-2fa

server

auto eth0
iface eth0 inet static
    address 192.168.122.9/24
    gateway 192.168.122.1

iface dummy0 inet static
    address 10.7.7.1/24
    pre-up ip link add dummy0 type dummy

also

cp -pi /etc/sysctl.conf /etc/sysctl.conf.dist
echo net.ipv4.ip_forward = 1 >> /etc/sysctl.conf
sysctl -p

client

    auto eth0
    iface eth0 inet static
            address 192.168.122.8/24
            gateway 192.168.122.1

shared

vi /etc/hosts

192.168.122.9   openvpn-server bookworm1
192.168.122.8   openvpn-client bookworm2
192.168.122.1   gw

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun