Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to set up a manually-keyed connection via ipsec-tools between two ubuntu 12.04 servers, following this simple tutorial, but one of that two servers, has just a range of ports 3000 .. 3100 available, because of firewall constriction.

Is it possible set them up non standard port and if yes how ?

share|improve this question
up vote 1 down vote accepted

IPsec itself doesn't use any ports. If you are willing to setup manually as described in the tutorial it should work.

You need ports for automatic key exchange via racoon or another IKE daemon or maybe if you use NAT. These ports are 500/udp and 4500/udp by default and can by changed in racoon config file

    (maybe)    /etc/racoon/racoon.conf

Check the manpage

    man racoon.conf

for the listen section (Listening Port Specification).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.