tips:vpn:univr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:vpn:univr [2019/05/30 11:35] scipiotips:vpn:univr [2023/04/12 09:18] (current) – [network manager] sscipioni
Line 1: Line 1:
 ====== VPN univr ====== ====== VPN univr ======
  
-ubuntu+====== ubuntu ====== 
 <code bash> <code bash>
 sudo apt install network-manager-vpnc network-manager-vpnc-gnome sudo apt install network-manager-vpnc network-manager-vpnc-gnome
 </code> </code>
  
-arch+====== arch ====== 
 <code> <code>
-yay networkmanager-vpnc+paru networkmanager-vpnc 
 +</code> 
 + 
 +====== network manager ====== 
 + 
 + 
 +<code> 
 +yay -S networkmanager-vpnc
 </code> </code>
  
 add VPN cisco compatible from network manager: add VPN cisco compatible from network manager:
-  * gateway: h2u.univr.it +  * gateway: remote.univr.it 
-  * username +  * username: ateneo\01scpsfn29 
-  * password+  * password: xxx
   * group: univr   * group: univr
   * group password: univr   * group password: univr
 +
 +
 +{{:tips:vpn:vpn1.png?400|}}
 +
 +{{:tips:vpn:vpn2.png?400|}}
 +
 +
 +or create /etc/NetworkManager/system-connections/univr.nmconnection (chmod 600 and owned by root)
 +<code>
 +[connection]
 +id=univr
 +uuid=234f1f79-0a96-4be0-991e-75622ead54d0
 +type=vpn
 +autoconnect=false
 +permissions=user:scipio:;
 +timestamp=1630335537
 +
 +[vpn]
 +IKE DH Group=dh2
 +IPSec ID=univr
 +IPSec gateway=remote.univr.it
 +IPSec secret-flags=0
 +Local Port=0
 +NAT Traversal Mode=natt
 +Perfect Forward Secrecy=server
 +Vendor=cisco
 +Xauth password-flags=0
 +Xauth username=xxx
 +ipsec-secret-type=save
 +xauth-password-type=save
 +service-type=org.freedesktop.NetworkManager.vpnc
 +
 +[vpn-secrets]
 +IPSec secret=univr
 +Xauth password=xxx
 +
 +[ipv4]
 +method=auto
 +
 +[ipv6]
 +addr-gen-mode=stable-privacy
 +method=auto
 +
 +[proxy]
 +</code>
 +
 +
 +====== bastion (jump box) ======
 +
 +{{ :tips:vpn:mfa.jpg |}}
 +
 +~/.ssh/config
 +<code>    
 +Host umfa
 +  Hostname mfa-ssh-srv.univr.it 
 +  User 01scpsfn29
 +  ForwardAgent yes
 +
 +Host ucd
 +  Hostname cd-www-srv.univr.it
 +  User 01scpsfn29
 +  ProxyJump umfa
 +
 +Host ustage
 +  Hostname stage-dev.univr.it
 +  User 01scpsfn29
 +  ProxyJump umfa
 +</code> 
 +
 +
 +Oppure, al posto di google auth, si può usare keepassxc utilizzando totp e la "secret key"
 +
 +{{:tips:vpn:totp.png?400|}}
 +
  • tips/vpn/univr.1559208917.txt.gz
  • Last modified: 2019/05/30 11:35
  • by scipio