Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've set up ipsec with preshared keys and it works, at least sort of. While my outbound traffic is marked "ESP" when running tcpdump, which is a good thing. But all my inbound connections (which are not coming from the ipsec gateway!) are received using no encryption at all.
I know my link is encrypted because:
1. ipsec auto --status says so
2. I've setup my firewall rules on the gateway host so that only ipsec encrypted traffic is allowed, which I've verified.
Code:
/etc/ipsec.conf on notebook, IPadresses swapped on gateway
version 2.0
config setup
forwardcontrol=yes
interfaces="ipsec0=eth2"
conn wlan
left=172.19.0.3
right=172.19.0.1
rightsubnet=0.0.0.0/0
authby=secret
auto=start
The gateway is running Kernel 2.4.20 while the notebook is running 2.6.4. Yet I doubt, that this is the reason behind this problem.
are you requiring or only requesting security? either way, there is clearly an issue, but if you are only requesting, try setting it to require. no traffic will come back, but you can look at the capture and narrow down the problem here, or post the dump here and let all of us try and see. In fact, can you post the output of the dump here so we can take a look?
Encryption is required, The firewall/gateway drop everything but ESP/AH Packets. If the ipsec tunnel isn't up, there is no way to get past the gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.