This is currently what my server config looks like:
local 192.168.1.13 (Tried my pi's local ip, my routers broadcast ip also. Port forwarding set up for ssh and vpn, can ssh from outside my local network)
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/JoesServer.crt
key /etc/openvpn/easy-rsa/keys/JoesServer.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OpenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.1.13 255.255.255.0"
# Set primary domain name server address to the SOHO Router
# If your router does not do DNS, you can use Google DNS 8.8.8.8
push "dhcp-option DNS 192.168.1.1"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
I'm having an issue with ddclient updating my ip to the local ip of my router, 192.168.1.1. If I'm understanding correctly what I've read it should be updating to my routers broadcast ip which is something like 9*.1**.178.2** and not updating to 192.168.1.1.....
root@raspberrypi:/etc/ddclient# dig
www.opendns.com
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>>
www.opendns.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18140
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;
www.opendns.com. IN A
;; ANSWER SECTION:
www.opendns.com. 68 IN A 67.215.92.219
;; Query time: 37 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sun Feb 8 20:51:09 2015
;; MSG SIZE rcvd: 49
my config file for ddclient is:
daemon=600 # check every 600 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=myip.dnsdynamic.com(this is actually what is there, am I supposed to change something on this line?) # get ip from server.
server=
www.dnsdynamic.org # default server
login=my email/dnsdynamic login is here # default login
password=my dnsdynamic password is here # default password
server=
www.dnsdynamic.org \
protocol=dyndns2 \
jbodhorn.dnsdynamic.com
I don't know what else is needed to help me get this damn vpn working, please let me know. I've had to revert to dhcp as when I had it set up as static a lease ran out and I got all sorts of errors, I'm currently trying to fix this and get a static ip once again. my router gives an option to check a box to make the current ip static, but when the lease timer runs out it screws up. I can manually set an ip but when i try i get errors, I will be told that the ip is illegal or that it won't work with the subnet mask. my router says:
Rule Name Service Subnet Mask Dynamic IP Range Action
Network (Home/Office) DHCP Server 255.255.255.0 192.168.1.2 - 192.168.1.254
I don't quite understand what ips I can use outside the dhcp range I thought 192.168.2.13 would be outside the dhcp range but I get an error as it appanently is not outside that range. When I tried a different ip that is when I got the error about it not matching the subnet. If I'm not making any sense its because I'm confused as all hell and having a hard time explaining my many issues