Internet Protocol Security (IPsec) is a protocol suite for securing IP communications by authenticating and/or encrypting each IP packet of a communication session.
Questions tagged [ipsec]
282 questions
35
votes
1 answer
How to write a VPN server
I have decided to write my own light weight VPN server in Java. From a programming standpoint it appears to me a VPN server is just a pass-through proxy that encrypts traffic from the client, and decrypts it on the server. Can someone point me to a…

Dave
- 359
- 1
- 3
- 3
12
votes
1 answer
Native Android VPN programmatically
Variants of this question exist, but I can't seem to understand something.
If you read at the end of the features in ICS / 4.0, there is mention of
Enterprises can also take advantage of a standard VPN client built into the platform that provides…

Dulax
- 553
- 3
- 20
12
votes
2 answers
Difference between KLIPS and Netkey IPSEC stacks in Linux
I know both are IPSEC stacks in Linux kernel and that KLIPS is older and Netkey is newer but other than that I find no other documentation of them. I want to know the real technical differences between them. Is there any one here who can tell me the…

awatan
- 1,182
- 15
- 33
10
votes
1 answer
Can't create IPSEC connection using NEVPNManager on iOS
I'm trying to create an IPSEC VPN connection in my iOS app.
My code for setting up the configuration looks like this:
-(void)setUpConfig
NEVPNManager *manager = [NEVPNManager sharedManager];
int status = manager.connection.status;
if…

flyingtoaster0
- 159
- 1
- 7
9
votes
2 answers
How to see outgoing ESP packets in tcpdump before they get encrypted
I have a setup having Ipsec Tunnel between two end systems. When I capture packets on outgoing interface e.g eth0 I can only see encrypted ESP packets going out of my system. I have to go and look at the receiving end to see what was actually…

user3336687
- 91
- 1
- 1
- 2
8
votes
0 answers
Set up VPN programmatically on Android
I need to implement VPN IPsec on android programmatically i.e. connecting, disconnecting on the click of button inside my own app, without asking user explicitly.
Came across…

krnbatta
- 497
- 5
- 17
8
votes
1 answer
Can you use IPsec on a tcp connection programmatically instead of doing user-level SSL/TLS?
I'm not trying to setup a VPN. I want to secure tcp sessions between services that might be implemented in either user-mode or as kernel daemons. If it weren't for the kernel requirement, TLS would probably suffice.
First target would be Linux;…

dbrower
- 254
- 2
- 9
8
votes
1 answer
shrewsoft command line interface to connect and terminate vpn on ubuntu
Shrewsoft [1] provides a command line interface for setting up the vpn tunnel automatically without any user intervention, such as by using the following command
ikec -u username -p password -r configuration -a
IS there any way to detect if the…

ZestyZest
- 911
- 13
- 27
8
votes
2 answers
Site to site OpenSWAN VPN tunnel issues with AWS
We have a VPN tunnel with Openswan between two AWS regions and our colo facility (Used AWS’s guide: http://aws.amazon.com/articles/5472675506466066). Regular usage works OK (ssh, etc), but we are having some MySQL issues over the tunnel between all…

Christopher Glenn Schlägel
- 155
- 1
- 3
- 9
6
votes
1 answer
How to use IPSec / Openswan with Amazon's Virtual Private Cloud (VPC) and EC2?
Does anyone know how to use Openswan to create an IPSec tunnel to a Cisco router on EC2?
I keep reading that people can or they cannot set up the IPSec tunnels on Amazon's cloud. Is it possible or not?
If so, can someone point me to a tutorial where…

Tucker
- 7,017
- 9
- 37
- 55
6
votes
0 answers
Tinc/SHH/IPSec: tuning for high throughput
I have a dedicated 128GB ram server running memcached. 4 web servers connect to that one. They send a total of around
20k packets/sec.
Recently I decided to change connection from webservers to the memcached server from persistent SSH tunnels to…

Niels Kristian
- 8,661
- 11
- 59
- 117
6
votes
2 answers
Purpose of the selector in ip xfrm state add
What does the selector (parameter sel) in the "ip xfrm state add" command achieve?
The source and destination addresses (and additional parameters like ports and protocol) are set in the ID section, but the selector contains a supplementary set of…

Marste
- 627
- 7
- 22
5
votes
0 answers
Android connect to VPN Server (IPSec) with PSK and User/Pass
I want to connect to IPSec VPN Server with PSK and User/Pass, but I also want to make it able to run in lower Android too ( SDK version >= 20 )
I know Google added Ikev2VpnProfile and VPNManager in Android R, but I
want the same functionality in…

CodingWithRoyal
- 1,006
- 1
- 6
- 15
5
votes
1 answer
ipsec.py CANT FIND THE attribute IPPROTO_ESP and socket.IPPROTO_AH
I install the module scapy for python 2.6 and when I import this module I get this warning:
WARNING: can't import layer ipsec: 'module' object has no attribute 'IPPROTO_AH'
I looked in the socket attributes and i didnt find the 'IPPROTO_AH'…

yosi doran
- 53
- 1
- 1
- 3
5
votes
1 answer
How to use ipsec on a LAN without vpn
Is it possible to transfer data between computers (Windows 7) in a LAN using IPSEC (for authentication and encryption) but without VPN? If yes how? All the information I found related to possible solutions include VPN.

Gaston
- 589
- 1
- 10
- 34