Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem Setting Up Vpn Bridge

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 4.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MAbdullah47
      last edited by

      Hi Experts :

      I have Some Difficulties On Setting Up My Openvpn on (ubuntu 8.04) Based from the following Links:
      http://openvpn.net/index.php/documentation/miscellaneous/ethernet-bridging.html
      http://www.linode.com/wiki/index.php/OpenVPN

      The OpenVPN bridge can now be started and stopped using this Ideal sequence::

      • run bridge-start
      • run openvpn
      • stop openvpn
      • run bridge-stop
        The Setting of the Client/Server illustrated on the (Attached File) each Machine Has (2) NW Cards
        (eth0,eth1)
        The Bridge-Start Script on the (Server) :
        Bridge script:
        #!/bin/bash
        #################################

      Set up Ethernet bridge on Linux

      Requires: bridge-utils

      #################################

      Define Bridge Interface

      br="br0"

      Define list of TAP interfaces to be bridged,

      for example tap="tap0 tap1 tap2".

      tap="tap0"

      Define physical ethernet interface to be bridged

      with TAP interface(s) above.

      eth="eth0"
      #get this info with: ifconfig
      eth_ip="192.168.3.1"
      eth_netmask="255.255.225.0"
      eth_broadcast="192.168.3.255"
      #gateway, get it with: netstat -rN
      gw="192.168.3.1"

      The Bridge-Start Script on the (Client) :
      Bridge script:
      #!/bin/bash
      #################################

      Set up Ethernet bridge on Linux

      Requires: bridge-utils

      #################################

      Define Bridge Interface

      br="br0"

      Define list of TAP interfaces to be bridged,

      for example tap="tap0 tap1 tap2".

      tap="tap0"

      Define physical ethernet interface to be bridged

      with TAP interface(s) above.

      eth="eth0"
      #get this info with: ifconfig
      eth_ip="192.168.3.172"
      eth_netmask="255.255.225.0"
      eth_broadcast="192.168.3.255"
      #gateway, get it with: netstat -rN
      gw="192.168.3.172"

      About Server & Client (..conf) same as on the link:
      http://openvpn.net/index.php/documentation/miscellaneous/ethernet-bridging.html
      the bridge on server:
      server-bridge 192.168.1.72 255.255.255.0 192.168.1.1 192.168.1.200

      The Client Remote:
      remote 192.168.3.1 1194

      I made manual Ip Routing for IPs:
      IPs <127 to come from (192.168.3.1) her is the command:
      route add -net 192.168.1.0 netmask 255.255.255.128 gw 192.168.3.1
      IPs >127 to come from (192.168.3.1) her is the command:
      route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.3.172

      Manual Routing Ping between the two Machines successfully pinging (without operating openvpn) , but
      any client connected to any of the two machines will not ping successfully.

      But when I Run the (openvpn server.conf) & (openvpn client.conf) I got the following error messages:
      The Client Site:
      Cannot ioctl TUNSETIFF tap0: Device or resource busy (errno=16)

      Cannot open TUN/TAP dev /dev/tap0: No such file or directory  (errno=2) …

      On The server Site:
      Connection Refused (error = 111)

      Please Advice

      Network_Current.jpg
      Network_Current.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.