Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-13-2008, 03:11 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
OpenVPN configuration problems


I have some problem with my OpenVPN server.

My VPN network is
The problem that I am having is that my client gets an /30 IP address, the address that it is getting is

I can not ping the server or ping the client from the server.

The server is running gentoo with OpenVPN, and the client Windows XP

[ The tun0 interface on the server ]

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr: P-t-P: Mask:

[ Windows/Client OpenVPN config ]

dev tun
proto udp
remote 1194
resolv-retry infinite
ca ca.crt
cert client1.crt
key client1.key
cipher AES-128-CBC # AES
verb 3

[ gentoo/server OpenVPN config ]

port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-128-CBC # AES
user nobody
group nobody
status openvpn-status.log
verb 3

VPN network =
Internal LAN =

This is the first time I am setting up a VPN server and I would be greatful if someone could help me and explain what I am doing wrong.
Old 11-13-2008, 03:44 PM   #2
LQ Newbie
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I fixed the problem, my firewall(iptables) was blocking the tun interface by default

This is what I had to do;

# Allow TUN interface connections to OpenVPN server
iptables -A INPUT -i tun+ -j ACCEPT

# Allow TUN interface connections to be forwarded through other interfaces
iptables -A FORWARD -i tun+ -j ACCEPT


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
OpenVPN SSL configuration izaakrach Linux - Networking 2 04-01-2008 03:35 PM
OpenVPN on OpenWRT problems capn_hector Linux - Networking 3 01-19-2007 05:31 PM
Configuration of OPENVPN Camara SUSE / openSUSE 1 10-04-2006 04:29 PM
LXer: Advanced OpenVPN Configuration (PDF Article) LXer Syndicated Linux News 0 09-20-2006 12:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration