http://www.emaculation.com/doku.php/bri ... rver_setup
Although I didn't get the exact point of "Port Forwarding" section and didn't do anything about that, except enabling it over IPv4 at the server side, I've got successfully connected to it from the internet, but no traffic goes inside this server and I'm receiving data from my own internet line.
I myself doubt about the "Port Forwarding" and IP settings, but actually don't know what's going on and why this happens.
Here is my server.conf file:
Code: Select all
port 1194
proto udp
dev tap0
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
remote-cert-tls client
server-bridge 172.16.36.100 255.255.255.0 172.16.36.101 172.16.36.110
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 3
Code: Select all
client
dev tap0
proto udp
remote 60.50.40.190 1194
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
remote-cert-tls server
comp-lzo
verb 3
Code: Select all
#!/bin/sh
# 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"
eth_ip="60.50.40.190"
eth_netmask="255.255.255.248"
eth_broadcast="60.50.40.191"
eth_gateway="60.50.40.185"
case "$1" in
start)
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
sleep 1
ifconfig $eth 0.0.0.0 promisc up
sleep 1
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast
sleep 1
route add default gw $eth_gateway
;;
stop)
ifconfig $br down
brctl delbr $br
for t in $tap; do
openvpn --rmtun --dev $t
done
ifconfig $eth $eth_ip netmask $eth_netmask broadcast $eth_broadcast
route add default gw $eth_gateway
;;
*)
echo "Usage: openvpn-bridge {start|stop}"
exit 1
;;
esac
exit 0
There also is something to report and that's the br0 and tap0 interfaces which are still displayed at the output of ifconfig after stopping openvpn service and it's against what mentioned at instructions.