LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-02-2020, 01:55 PM   #1
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Rep: Reputation: 15
libreswan tries to connect to the wrong ip!


Hi!
I'm having a problem I never thought could occur. I'm trying to connect to a vpn via libreswan (tried strongswan with the same result).
The thing is that libreswan tries to connect to an ip-adress that's not in any of the configuration files.
If i do a traceroute then my server finds finds the right ip.
Code:
traceroute -I --port=500 [IP Adress]
But as soon as I start the vpn software it uses the wrong IP.
I have tried searching for the wrong adress in my /etc folder just to see that there isn't any garbage file that's messing up my computer.
Code:
sudo find /etc -type f -exec grep -i '80.72.2.98' {} \;
(Yup, I'm pretty desperate right now.)
And the adress not present anywhere in any config file. In fact I have never heard of the company using that adress.

I even shut down my firewall and cleared the ip tables just to make sure. But that didn't work either.

I think I'm loosing my mind here. Do any of you guys have any idea on what could be wrong?

Edit: if someone is interested in my config file for libreswan:
Code:
config setup
  protostack=netkey
  virtual_private=%v4:1.0.0.0/8
  uniqueids=no

conn VPN
    authby=secret
    pfs=no
    auto=add
    rekey=no
    left=46.246.X.X
    leftsubnet=1.1.1.0/24
    right=62.181.X.X
    rightsubnet=192.168.X.X/32
    # make cisco clients happy                                                                                                                                             
    cisco-unity=yes
    # address of your internal DNS server                                                                                                                                  
    modecfgdns=1.1.1.1
    leftxauthserver=yes
    rightxauthclient=yes
    leftmodecfgserver=yes
    rightmodecfgclient=yes
    modecfgpull=yes
    ike=aes128-sha1;modp1024
    phase2alg=aes128-sha1
    nat-ikev1-method=none                                                                                                                                                           
    # xauthby=alwaysok MUST NOT be used with PSK                                                                                                                           
    # Can be played with below                                                                                                                                             
    #dpddelay=30                                                                                                                                                           
    #dpdtimeout=120                                                                                                                                                        
    #dpdaction=clear                                                                                                                                                       
    # xauthfail=soft                                                                                                                                                       
    ike-frag=yes
    ikev2=never

Last edited by pandersson61; 01-02-2020 at 02:00 PM.
 
Old 01-07-2020, 02:50 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,855

Rep: Reputation: 161Reputation: 161
What's the output of your route table?
 
  


Reply



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
libreswan - IPSec not getting established lokesharo Linux - Networking 1 03-23-2016 02:10 PM
LXer: Red Hat Enterprise Linux 6.8 Now in Beta, Libreswan Replaces Openswan LXer Syndicated Linux News 0 03-15-2016 07:54 PM
[SOLVED] Libreswan connection issue Nataliya_K Linux - Networking 2 10-20-2015 02:37 PM
kdeprint tries to connect to wrong IP for CUPS ta0kira Slackware 3 07-19-2011 06:56 AM
Machine tries to connect through wrong interface. cov Linux - Networking 3 10-19-2009 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration