sábado, 11 de marzo de 2017

NAT Proxmox

auto lo
iface lo inet loopback

auto eth0
#real IP adress
iface eth0 inet static
        address  192.168.1.252
        netmask  255.255.255.0
        gateway  192.168.1.254

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE


other


auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.253
        netmask 255.255.255.0
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto eth1
iface eth1 inet static
        address  192.168.1.1
        netmask  255.255.255.0
        gateway 192.168.1.254

auto vmbr1
iface vmbr1 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth1 -j MASQUERADE

Instalar systemd y systemd-sysv

Instalar systemd y s ystemd-sysv Debian $apt-get update $apt-get upgrade  $apt-get install systemd  $apt-get install systemd-sysv  Este...