Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-28-2016, 06:06 AM   #1
LQ Newbie
Registered: Jan 2016
Posts: 1

Rep: Reputation: Disabled
using ip xfrm to encrypt packets to "any" destination


I'm trying to come up with ip xfrm rules to encrypt packets from a source address to any destination. The command I came up with is:

ip xfrm policy add src dst dev eth0 proto tcp dir out tmpl proto esp spi 10 mode transport
ip xfrm state add src dst proto esp spi 10 enc cast5 0xaaaaaaaaaa

However, I noticed that with these commands, not only is the packet not being encrypted, but no packets are being sent on the wire.

Can anyone help me with this?


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
[SOLVED] Hack Clonezilla image to work around "destination disk is too small" jowagner Linux - Software 5 08-30-2014 07:50 AM
[Backup Restore] Remove "/" or define destination path Fracker AIX 5 06-20-2013 04:59 PM
[SOLVED] Pinging local machines gives "Destination host unreachable" Snark1994 Linux - Networking 12 06-20-2011 11:03 AM
GnuPG "File encrypt" option appears in dolphin and Konquorer but not in nautilus emuub Fedora 1 12-06-2008 11:55 AM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 11:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:38 AM.

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