I'm going on one week now trying to get this working right. I am trying to set up an OpenVPN server on my WRT54G running DD-WRT v23 SP2. Client is my XP laptop (can't connect from linux either). Been searching everywhere for a solution, and found nothing that helps.
Here is my startup script:
firewall (just added the last two lines yesterday, didnt help):
here is one of my client config files from XP:
The other one doesn't redirect, but neither work. Here is what happens when I try using the redirect config. I connect fine. I can't ping anything on the lan, I can't connect to my router via HTTP, and MOST of the time, websites don't load. Packets get sent, but I get nothing back (according to the connection status window).
Last night I hooked my laptop to the WAN port of my router and gave them both static addresses, I was able to connect and browse the LAN, everything worked. I've tried different ports, TCP instead of UDP, etc.
I have this question: my home IP scheme is 192.168.1.x, router/gateway is 192.168.1.1
What if the network on the clients end had the same scheme? and the router/gateway on that network was also 192.168.1.1? Would that cause an issue? If not, maybe my ISP is blocking my connection (have tried different ports).
Here is my startup script:
Code:
openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
echo "
-----BEGIN OpenVPN Static key V1-----
KEY HERE
-----END OpenVPN Static key V1-----
" > /tmp/static.key
ln -s /usr/sbin/openvpn /tmp/myvpn
/tmp/myvpn --dev tap0 --secret /tmp/static.key --comp-lzo --port 1194 --proto udp --verb 3 --daemon
firewall (just added the last two lines yesterday, didnt help):
Code:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tap+ -j ACCEPT
iptables -A FORWARD -i tap+ -j ACCEPT
here is one of my client config files from XP:
Code:
# Use the following to have your client computer send all traffic through your router
# (remote gateway)
remote xxxx.dyndns.org
port 1194
dev tap
secret static.key
proto udp
comp-lzo
route-gateway 192.168.1.1
redirect-gateway
route-delay 2
The other one doesn't redirect, but neither work. Here is what happens when I try using the redirect config. I connect fine. I can't ping anything on the lan, I can't connect to my router via HTTP, and MOST of the time, websites don't load. Packets get sent, but I get nothing back (according to the connection status window).
Last night I hooked my laptop to the WAN port of my router and gave them both static addresses, I was able to connect and browse the LAN, everything worked. I've tried different ports, TCP instead of UDP, etc.
I have this question: my home IP scheme is 192.168.1.x, router/gateway is 192.168.1.1
What if the network on the clients end had the same scheme? and the router/gateway on that network was also 192.168.1.1? Would that cause an issue? If not, maybe my ISP is blocking my connection (have tried different ports).