Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

networking and bridging between interfaces

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
unf0rg0tt3n
Posts: 1
Joined: 2017-05-27 06:54

networking and bridging between interfaces

#1 Post by unf0rg0tt3n »

Hi All,

I'm running Proxmox VE (Debian kernel) and I wanted to forward my WLAN1 interfaces straight to my ethernet port.
The Wlan1 is running as a AP and I want my LTSP on a VM giving out images trought Wireless interfaces.

I have several interfaces:
- eth0: Physical NIC
- vmbr0: eth0 --> vmbr0
- vmbr2: NAT interface with port forwarding to VM LTSP
- wlan1: AP straight in proxmox

This is a image of my network setup
Image

/etc/network/interfaces:

Code: Select all

auto lo
iface lo inet loopback

allow-hotplug wlan1

auto wlan1
iface wlan1 inet static
        #bridge_ports vmbr2
        #bridge_stp off
        #bridge_fd 0

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.1.99
        netmask  255.255.255.0
        gateway  192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr2
iface vmbr2 inet static
        address  10.10.5.254
        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.5.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.5.0/24' -o vmbr0 -j MASQUERADE
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 10.10.5.5:80
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 10.10.5.5:80
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.5.5:443
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.5.5:443
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 10.10.5.5:21
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 10.10.5.5:21
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 25 -j DNAT --to 10.10.5.5:25
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 25 -j DNAT --to 10.10.5.5:25
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 143 -j DNAT --to 10.10.5.5:143
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 143 -j DNAT --to 10.10.5.5:143
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1011 -j DNAT --to 10.10.5.5:1011
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1011 -j DNAT --to 10.10.5.5:1011
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1012 -j DNAT --to 10.10.5.6:1012
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1012 -j DNAT --to 10.10.5.6:1012
My dns Masq

Code: Select all

interface=wlan1
expand-hosts
domain=local
dhcp-range=10.0.0.10,10.0.0.20,24h
dhcp-option=3,10.0.0.1
The ip's are handing out accordingly.

The VM LTSP interface is as folliwing:
Image

So do I have to change the DNSmasq settings to the same settings as VMbr2?
Or do i have to install the Wlan1 inside the VM LTSP?

Please help

Regards!

Post Reply