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
Suscribirse a:
Entradas (Atom)
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...
-
wget -O - --http-user=username --http-passwd=password 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'
-
# 1: Detener el proceso del servidor MySQL. root@servidor-ubuntu:~# /etc/init.d/mysql stop * Stopping MySQL database server mysqld [ OK ] ro...
-
auto lo iface lo inet loopback auto eth0 #real IP adress iface eth0 inet static address 192.168.1.252 netmask 255.2...