You are not logged in.
Pages: 1
So I've set up an openvpn bridging network in an attempt to create an openvpn network, and connect it to my wireless connection to connect other laptops. But running the OpenVPN start 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="wlan0"
eth_ip="10.0.1.2"
eth_netmask="255.255.255.0"
eth_broadcast="10.0.1.255"
for t in $tap; do
openvpn --mktun --dev $t
done
brctl addbr $br
brctl addif $br $eth
for t in $tap; do
brctl addif $br $t
done
for t in $tap; do
ifconfig $t 0.0.0.0 promisc up
done
ifconfig $eth 0.0.0.0 promisc up
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
Do I need to give it a different ip area than my local network, or should I tell my router to reserve ips for this? The instant I run this script, conky no longer shows a local ip and I lose internet connection.
and Here is the output of ifconfig, connected to my network
lan0 Link encap:Ethernet HWaddr 00:1F:F3:FB:9F:3A
inet6 addr: fe80::21f:f3ff:fefb:9f3a/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:6142 errors:0 dropped:0 overruns:0 frame:0
TX packets:5206 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5052769 (4.8 Mb) TX bytes:944743 (922.6 Kb)
Interrupt:42 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13186 errors:0 dropped:0 overruns:0 frame:0
TX packets:13186 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:968001 (945.3 Kb) TX bytes:968001 (945.3 Kb)
wlan0 Link encap:Ethernet HWaddr 00:1F:5B:FF:75:2C
inet addr:10.0.1.2 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:5bff:feff:752c/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:3451 errors:2 dropped:0 overruns:0 frame:172810
TX packets:3158 errors:37 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2722914 (2.5 Mb) TX bytes:459123 (448.3 Kb)
Interrupt:23
My computer is behind a network, do I need to open any ports? I am going to use this network for multiplayer minecraft gaming, if that helps
Last edited by duke11235 (2010-11-10 02:34:06)
Offline
Pages: 1