LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-10-2006, 10:07 AM   #1
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
How to set up ethernet ipsec connection?


I have 2.4.32, RealTek RTL8139C.
I've built RealTek into the kernel.
What should I do next?

Thanks.
 
Old 02-10-2006, 10:12 AM   #2
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
I suggest visiting http://www.ipsec-howto.org/ once you have got basic networking up and running on the system.

-Y1
 
Old 02-11-2006, 11:42 AM   #3
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Ok, after reading that howto here's what I have.

/etc/psk.txt
Quote:
10.104.4.61(=my_ip) my_password
/etc/resolv.conf
Quote:
search example.net
nameserver 80.89.159.33
nameserver 81.1.221.62
/etc/racoon.conf
Quote:
path pre_shared_key "/etc/psk.txt";

remote 10.104.4.61 {
exchange_mode main,aggressive;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group 2;
}
}

sainfo anonymous {
pfs_group 2;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}
/etc/setkey.conf
Quote:
#!/usr/sbin/setkey -f

flush;
spdflush;

spdadd 10.104.4.61/32 10.104.4.1/32 any -P out ipsec
esp/tunnel/10.104.4.61-10.104.4.1/require;
spdadd 10.104.4.1/32 10.104.4.61/32 any -P in ipsec
esp/tunnel/10.104.4.1-10.104.4.61/require;

spdadd 10.104.4.61/32 10.104.4.0/24 any -P out none;
spdadd 10.104.4.0/24 10.104.4.61/32 any -P in none;

spdadd 10.104.4.61/32 0.0.0.0/0 any -P out ipsec
esp/tunnel/10.104.4.61-10.104.4.1/require;
spdadd 0.0.0.0/0 10.104.4.61/32 any -P in ipsec
esp/tunnel/10.104.4.1-10.104.4.61/require;
Then I've run "netconfig", have provided correct values.
Then I've run "racoon -f /etc/racoon.conf", this process now sleeps (Ss).
After all this I have no access to internet.
What should I do next?

Thanks.
 
  


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
How do I set up a 2nd Ethernet card? socratesabroad Linux - Networking 6 05-16-2004 08:58 PM
set up ethernet alaios Linux - Networking 6 05-10-2004 09:56 AM
IPsec connection on RedHat9 - few questions tvojvodi Linux - Networking 0 02-24-2004 12:53 PM
Linux VPN - IPSEC connection for client? jon3k Linux - Networking 2 12-08-2003 12:47 AM
USB or Ethernet broadband connection/how to set up? Vandalin Linux - Networking 0 02-09-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:44 AM.

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