Broadband Adapter: Difference between revisions

Jump to navigation Jump to search
m (Formatting fixes)
Line 53: Line 53:
Install OpenVPN from your distribution package manager, then run the following commands (as root) to create the virtual interface and bridge it to your physical Ethernet adapter:
Install OpenVPN from your distribution package manager, then run the following commands (as root) to create the virtual interface and bridge it to your physical Ethernet adapter:
<pre>
<pre>
openvpn --mktun --dev Dolphin --dev-type tap
openvpn --mktun --dev Dolphin --dev-type tap --user john --group doe  # john:doe will be running the emulator
brctl addbr br0
brctl addbr br0
brctl addif br0 Dolphin
brctl addif br0 Dolphin
Line 60: Line 60:
ip l set Dolphin promisc on
ip l set Dolphin promisc on
</pre>
</pre>
You'll also need to change your network settings to configure IP/gateway on br0 instead of your usual adapter. Linux doesn't support adding a wireless interface to a bridge as of July 2012 so you need a wired NIC for that to work.
You'll also need to change your network settings to configure IP/gateway on br0 instead of the real adapter. The IP address of the real adapter must be set to 0.0.0.0. Linux doesn't support adding a wireless interface to a bridge as of July 2012 so you need a wired NIC for that to work.


In case you still want to use a wifi network for connecting, there is the option to create another tunnel-interface over a UDP connection across the wifi network:
<pre>
openvpn --dev tap-dolphin --port 2626 --remote otherIP --local thisIP --ping 10 --ping-exit 60 --daemon
</pre>
The created interface ''tap-dolphin'' can then be used to add to the ''br0'' bridge instead of ''eth0''.
NOTE that there is no encryption for the tunnel. Read the openvpn manpage for setting up the tunnel with encryption and/or authentication.


== Configure Dolphin ==
== Configure Dolphin ==