Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Help with VPN

  1. #11
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with VPN

    Quote Originally Posted by vncoder View Post
    I have the same issue but on Ubuntu 10.10 and I have used these commands:
    #brctl addbr br1
    #brctl addif br1 eth1

    After that my SSH connect got cut as well.
    I just can't figure out which IP addresses to put in what fields. Im sure if I get the right ones then it will work fine. any help is appreciated
    I'm a super power user

  2. #12
    Join Date
    Feb 2011
    Beans
    11

    Re: Help with VPN

    You may want to read this page:
    http://www.linuxfoundation.org/colla...working/bridge

    # ifconfig eth0 0.0.0.0
    # brctl addbr mybridge
    # brctl addif mybridge eth1
    # dhclient mybridge

    I got the eth1 using static IP while the bridge using dynamic ip.

    You should do this at the console or connect via eth0 if you have one.
    The only thing is mybridge got the IP but when I tried to ping the router/dhcp server - I get timeout. I've checked the route table and it does have correct default gateway.

  3. #13
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with VPN

    Quote Originally Posted by vncoder View Post
    You may want to read this page:
    http://www.linuxfoundation.org/colla...working/bridge

    # ifconfig eth0 0.0.0.0
    # brctl addbr mybridge
    # brctl addif mybridge eth1
    # dhclient mybridge

    I got the eth1 using static IP while the bridge using dynamic ip.

    You should do this at the console or connect via eth0 if you have one.
    The only thing is mybridge got the IP but when I tried to ping the router/dhcp server - I get timeout. I've checked the route table and it does have correct default gateway.
    Ok so I have only one box that is connected to eth0 (besides a couple xboxs). In the page you gave me it talks about multiple network cards. I'm only using one though. Sorry, I'm jst a bit confused
    I'm a super power user

  4. #14
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with VPN

    any ideas
    I'm a super power user

  5. #15
    Join Date
    Feb 2011
    Beans
    11

    Re: Help with VPN

    This is my interface file.

    I have two bridge interfaces - br0 and br1. I use them for virtualisation not for VPN. However it would be the same. I will run a firewall as a guest inside a ubuntu host. The firewall itself will also have it own bridges.

    I still leave the old IP addresses for eth0 and eth1 on there but once the bridges are active, the IP addresses for eth0 and eth1 no longer active/needed.
    I will remove the IP addresses later when I have a bit of time.
    However, the configuration works.

    If you do this, please make sure you are at the console because eth0 and eth1 will go down when you restart the network.

    I can connect to the bridges remotely without any issue. If you get disconnected then you may try to connect using the IP addresses of the bridges.




    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo eth0 eth1 br0 br1
    iface lo inet loopback

    # The primary network interface
    iface eth0 inet static
    address 192.168.0.7
    netmask 255.255.255.0
    network 192.168.0.0
    post-up iptables-restore < /etc/iptables.up.rules

    iface eth1 inet static
    address 10.1.1.2
    netmask 255.255.255.0
    network 10.1.1.0

    iface br0 inet static
    address 192.168.0.10
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    bridge_ports eth0
    bridge_fd 9
    bridge_hello 2
    bridge_maxage 12
    bridge_stp off

    iface br1 inet static
    address 10.1.1.10
    network 10.1.1.0
    netmask 255.255.255.0
    broadcast 10.1.1.255
    bridge_ports eth1
    bridge_fd 9
    bridge_hello 2
    bridge_maxage 12
    bridge_stp off
    gateway 10.1.1.1

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •