Skip to content

Instantly share code, notes, and snippets.

@greenido
Created April 9, 2014 08:22
Show Gist options
  • Save greenido/10240798 to your computer and use it in GitHub Desktop.
Save greenido/10240798 to your computer and use it in GitHub Desktop.
sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm <-- This might be changed... So check it on Fedora site
sudo yum install -y lsof man strongswan rng-tools
sudo vi /etc/sysconfig/rngd; EXTRAOPTIONS="-r /dev/urandom";
sudo ln -s /usr/sbin/strongswan /usr/sbin/ipsec
sudo service rngd start
sudo service ipsec start
sudo service strongswan start
sudo chkconfig rngd on
sudo chkconfig strongswan on
echo "%any : PSK \"<secret-key>\"" | sudo tee /etc/strongswan/ipsec.secrets > /dev/null
sudo cp ipsec.conf /etc/strongswan
# Enable IP forwarding on the gateway (you need to do both of the following):
1.Edit /etc/sysctl.conf and uncomment the line net.ipv4.ip_forward=1. The next time the system reboots, it will load these settings.
2.For the current session, run sysctl -p to apply the changes to the running system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment