473,383 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

OpenVpn routing issue

Hi everyone,

I'm somewhat new to Linux, and completely new to OpenVPN. But here is my situation, I have OpenVPN Installed on my server runing Ubuntu 7.10. I also have wandered through tutorials and have it runing to the point where I can connect to it.

server.conf
Expand|Select|Wrap|Line Numbers
  1. local 10.0.0.242
  2. port 1194
  3. ;proto tcp
  4. proto udp
  5. ;dev tap
  6. dev tun0
  7. ;dev-node MyTap
  8. ca ca.crt
  9. cert server.crt
  10. key server.key  # This file should be kept secret
  11. dh dh1024.pem
  12. server 10.10.10.0 255.255.255.0
  13. ;ifconfig-pool 10.10.10.10 10.10.10.30
  14. ifconfig-pool-persist ipp.txt 0
  15. ;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
  16. push "route 10.0.0.0 255.255.255.0"
  17. ;push "route 10.10.10.0 255.255.255.0"
  18. ;client-config-dir ccd
  19. ;route 192.168.40.128 255.255.255.248
  20. ;client-config-dir ccd
  21. ;route 10.9.0.0 255.255.255.252
  22. ;learn-address ./script
  23. ;push "redirect-gateway"
  24. ;push "dhcp-option DNS 10.10.10.1"
  25. ;push "dhcp-option WINS 10.8.0.1"
  26. client-to-client
  27. duplicate-cn
  28. keepalive 10 120
  29. ;tls-auth ta.key 0 # This file is secret
  30. ;cipher BF-CBC        # Blowfish (default)
  31. ;cipher AES-128-CBC   # AES
  32. ;cipher DES-EDE3-CBC  # Triple-DES
  33. comp-lzo
  34. ;max-clients 100
  35. ;user nobody
  36. ;group nobody
  37. persist-key
  38. persist-tun
  39. status openvpn-status.log
  40. ;log         openvpn.log
  41. ;log-append  openvpn.log
  42. verb 3
  43. ;mute 20
  44.  
And like I said, this is working to the point where I can connect, get and IP, and ping 10.10.10.1 (as I understand thats the gateway). Here is route -n on the server.

Expand|Select|Wrap|Line Numbers
  1. root@administrator-desktop:/etc/openvpn# route -n
  2. Kernel IP routing table
  3. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  4. 10.10.10.2      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
  5. 10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
  6. 10.10.10.0      10.10.10.2      255.255.255.0   UG    0      0        0 tun0
  7. 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
  8. 0.0.0.0         10.0.0.250      0.0.0.0         UG    100    0        0 eth0
  9.  
Here is a rough drawing of my topology,
Expand|Select|Wrap|Line Numbers
  1. |   10.0.0.250/24   |  ------  Server 2000
  2.           |
  3.           |
  4.           |
  5. |   10.0.0.242/24   |  ------   Ubuntu 7.10
  6.             \
  7.               \______10.10.10.x\24
  8.                           (vpn dhcp pool)
  9.  
Here is my client.ovpn, my client is Windows XP.
Expand|Select|Wrap|Line Numbers
  1. client
  2. ;dev tap
  3. dev tun
  4. ;dev-node MyTap
  5. ;proto tcp
  6. proto udp
  7. remote 10.0.0.242
  8. ;remote my-server-2 1194
  9. ;remote-random
  10. resolv-retry infinite
  11. nobind
  12. ;user nobody
  13. ;group nobody
  14. persist-key
  15. persist-tun
  16. ;http-proxy-retry # retry on connection failures
  17. ;http-proxy [proxy server] [proxy port #]
  18. ;mute-replay-warnings
  19. ca ca.crt
  20. cert client1.crt
  21. key client1.key
  22. ;ns-cert-type server
  23. ;tls-auth ta.key 1
  24. ;cipher x
  25. comp-lzo
  26. verb 3
  27. ;mute 20
  28.  
Now, when I connect I get an address of 10.10.10.6\30. I'm not 100% sure why its giving me a subnet of 255.255.255.252 instead of 255.255.255.0 when I specifically have "10.10.10.0 255.255.255.0" in the server.conf, and I almost want to think that's where I'm getting problems. The 10.0.0.250 is one of our servers thats NATing our internal network of 10.0.0.x. I have the ports forwarded so there is connectivity from outside our network. The Ubuntu server is inside at 10.0.0.242. When I connect, I can ping 10.10.10.1, and 10.0.0.242(LAN address of the ubuntu server), but that's all I can get a reply from. From inside the LAN, I can also ping 10.10.10.1, but can't get to any of the remote computers. Am I just missing a route or something?

Thanks for any help,

Scotter
Nov 3 '08 #1
0 2870

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Shiv Agarwal | last post by:
Hi, I am writing a .NET application in C#. I have to display the routing table in some formatted NMS way. Anyhow the issue is that, whenever the routing table changes I want to get an event....
1
by: Tom Weston | last post by:
Help I have created a report in access and wish to use a routing slip to email it to my line management, how can I do that? I have searched the web but not found a way to add a routing slip,...
11
by: Raghavendra Mudugal | last post by:
Hello Everybody, We are creating a new project on Virtual Private Networking (VPN), and it is decided to use VC++. I actually want to know that is can be achived by VC#.NET or not. You all know...
1
by: juvi | last post by:
Hi, I have got a problem. I want to design something like a navigation/routing software for a building (like: I am in room A and I want to room E --> route!) How would you do it or is there a...
0
by: softwareakash | last post by:
Hi All I have a requirement where my winforms applications business logic has to start openVPN client passing the location of a configuration file as an argument. The open VPN Client will then...
2
by: ricky | last post by:
Hi, I am student and I am doing a final year project on Zig-bee. I have to write low energy routing algorithms. I need to write routing algorithm for LEACH. If anybody can help with some links...
0
by: Andrew | last post by:
Hello I am trying to port some code and I am running into some issues I may or may not be able to solve on my own and would appreciate your help Basically I am trying to open the Tun Driver...
1
by: raravaice | last post by:
We have a problem with openvpn routing Accordingly to the picture we have a server and a client of openvpn,server is Fedora9 and client is win xp,we intend to assign a valid ip address from server...
0
by: shekharban | last post by:
Hi, Below is the raw socket program for sending routing header in ipv6 domain. My source address is fe80::21d:9ff:fe17:58c7 and destination address is fe80::21d:9ff:fe17:5d0e in the below...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.