Hi!
I know I have a long post trying to make work openVPN. It already worked, but my hard disk drive died. I bought a new one and reinstall everything, but again I'm unable to make openVPN work properly.
I Runnin openVPN on ubuntu server 12.04.3 LTS and try to make bridging way.
1st
Trying to make it work, I create tap0 interface that I cannot disable and try from the begining. Also, when I do:
openvpn server.conf
it tell me that the soket is already used, but I don't find other process of openvpn. Here, I want to start from the beginnig
2nd
How firewall should be configure?
3rd
I wich not be in conflict with other ip adresse (such as in a cafe) using 192.168.1.x. So how I use other ip adresse?
4th
Here my configuration files:
Bridge-start:
#!/bin/sh
#################################
# 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"
eth_ip="192.168.1.150"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.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
route add default gw "192.168.1.1" br0
server.conf:
(I erase all the comments)
port 1194
proto tcp
dev tap0
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.1.150 255.255.255.0 192.168.1.160 192.168.1.220
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
clien.conf:
(no comments)
client
dev tap0
proto tcp
remote 209.197.141.59 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3
Thanks for helping