LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-04-2005, 05:50 AM   #1
Zym0tiC
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 10.1 / Ubuntu Hoary 5.04
Posts: 12

Rep: Reputation: 0
[openvpn] routing at server side


First some introduction, i'm trying to use smtp over vpn. So i can use my smtp sever from my isp even if i'm not at home.

I installed openvpn2 at my server, slackware 10.1. I put the openvpn client on my winxp laptop. I followed the static guide on the openvpn site. The vpn connection is working because i can browse my shares on the server. But I don't get internet working. I suppose it had something to do with routing on my server.

My situation:

[server ip: 192.168.0.100/24 gw: 192.168.0.1 vpn: 192.168.1.1/30]
|
|
[router ip 192.168.0.1/24]
|
|
Internet
|
|
[Laptop ip: 145.91.101.159/25 gw: 145.91.101.254 vpn: 192.168.1.1]

My server.conf
Code:
dev tun
ifconfig 192.168.1.1 192.168.1.2
secret /etc/openvpn/static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
user nobody
group nobody
daemon
My client.conf
Code:
remote <server>
dev tun
ifconfig 192.168.1.2 192.168.1.1
secret "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\static.key"
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
route 192.168.0.0 255.255.255.0
ipconfig client:
Code:
Ethernet adapter VPN:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.1.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.252
        Default Gateway . . . . . . . . . :
ifconfig server:
Code:
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
The question is, what to do on the server, and maybe the client, to use my home router (192.168.0.1) when sending mail.
 
Old 10-06-2005, 05:33 AM   #2
Zym0tiC
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 10.1 / Ubuntu Hoary 5.04
Posts: 12

Original Poster
Rep: Reputation: 0
anyone?
 
Old 10-06-2005, 04:40 PM   #3
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
Re: [openvpn] routing at server side

Quote:
Originally posted by Zym0tiC
First some introduction, i'm trying to use smtp over vpn. So i can use my smtp sever from my isp even if i'm not at home.
Well. you could try using your 'server' as an smtp-proxy. send all your mail to this one, let it rewrite it, and send it out to the isp SMTP server.

Or you could use traceroute (tracert on windows) to see if the path to your isp is going 'through' the vpn..

Try posting the result of the tracert here..
 
  


Reply


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 Bridged Connection. Linux Server to Windows XP Dewar Linux - Networking 0 01-21-2005 04:22 PM
openVPN and routing issues mdkelly069 Linux - Networking 0 07-12-2004 01:19 PM
OpenVPN Routing problem groetschel Linux - Networking 4 04-28-2004 05:07 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 09:52 AM
client side routing? heiseltc Linux - Networking 1 03-06-2003 07:40 PM


All times are GMT -5. The time now is 08:45 PM.

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