Skip to content

Instantly share code, notes, and snippets.

@mohsenk
Last active September 21, 2018 14:03
Show Gist options
  • Save mohsenk/4d54f59f312ef6f2835c333591e40708 to your computer and use it in GitHub Desktop.
Save mohsenk/4d54f59f312ef6f2835c333591e40708 to your computer and use it in GitHub Desktop.

Revisions

  1. Mohsen revised this gist Sep 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ipsec.conf
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ conn shared
    dpdaction=clear
    ike=3des-sha1,3des-sha2,aes-sha1,aes-sha1;modp1024,aes-sha2,aes-sha2;modp1024,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512
    sha2-truncbug=no
    sha2-truncbug=yes

    conn l2tp-psk
    auto=add
  2. Mohsen revised this gist Sep 21, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ipsec.conf
    Original file line number Diff line number Diff line change
    @@ -21,8 +21,8 @@ conn shared
    dpdtimeout=120
    dpdaction=clear
    ike=3des-sha1,3des-sha2,aes-sha1,aes-sha1;modp1024,aes-sha2,aes-sha2;modp1024,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512,aes256-sha2_256
    sha2-truncbug=yes
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512
    sha2-truncbug=no

    conn l2tp-psk
    auto=add
  3. Mohsen revised this gist Sep 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ipsec.conf
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ conn shared
    dpdaction=clear
    ike=3des-sha1,3des-sha2,aes-sha1,aes-sha1;modp1024,aes-sha2,aes-sha2;modp1024,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512,aes256-sha2_256
    sha2-truncbug=no
    sha2-truncbug=yes

    conn l2tp-psk
    auto=add
  4. Mohsen renamed this gist Sep 21, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. Mohsen revised this gist Sep 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ conn shared
    dpdtimeout=120
    dpdaction=clear
    ike=3des-sha1,3des-sha2,aes-sha1,aes-sha1;modp1024,aes-sha2,aes-sha2;modp1024,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512,aes256-sha2_256
    sha2-truncbug=no

    conn l2tp-psk
  6. Mohsen created this gist Sep 21, 2018.
    52 changes: 52 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    version 2.0

    config setup
    nat_traversal=yes
    virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:!192.168.42.0/23
    protostack=netkey
    nhelpers=0
    interfaces=%defaultroute
    uniqueids=no

    conn shared
    left=172.17.0.2
    leftid=46.101.137.216
    right=%any
    encapsulation=yes
    authby=secret
    pfs=no
    rekey=no
    keyingtries=5
    dpddelay=30
    dpdtimeout=120
    dpdaction=clear
    ike=3des-sha1,3des-sha2,aes-sha1,aes-sha1;modp1024,aes-sha2,aes-sha2;modp1024,aes256-sha2_512
    phase2alg=3des-sha1,3des-sha2,aes-sha1,aes-sha2,aes256-sha2_512
    sha2-truncbug=no

    conn l2tp-psk
    auto=add
    leftsubnet=172.17.0.2/32
    leftnexthop=%defaultroute
    leftprotoport=17/1701
    rightprotoport=17/%any
    type=transport
    phase2=esp
    also=shared

    conn xauth-psk
    auto=add
    leftsubnet=0.0.0.0/0
    rightaddresspool=192.168.43.10-192.168.43.250
    modecfgdns1=8.8.8.8
    modecfgdns2=8.8.4.4
    leftxauthserver=yes
    rightxauthclient=yes
    leftmodecfgserver=yes
    rightmodecfgclient=yes
    modecfgpull=yes
    xauthby=file
    ike-frag=yes
    ikev2=never
    cisco-unity=yes
    also=shared