/srv/irclogs.ubuntu.com/2023/05/10/#ubuntu-server.txt

=== elastic_dog is now known as Guest8345
=== adendrag33 is now known as adendrag3
=== adendrag332 is now known as adendrag33
=== adendrag332092 is now known as adendrag33209
=== adendrag332091 is now known as adendrag33209
micheleI'm using needrestart with the configuration "automatically restart daemons". However, my logs say: Services to be restarted:10:11
michele systemctl restart nginx.service10:11
micheleEven though it does not restart nginx.10:11
micheleHow can I understand why?10:11
punkgeekHello, I want to forward l2tp connection from a middle server (like tunnel), i'm using the following iptables command but it doesn't work, any suggestion?13:28
punkgeeksudo sysctl net.ipv4.ip_forward=113:28
punkgeekiptables -t nat -A POSTROUTING -p udp --match multiport --sports  1701,500,4500,50 -j MASQUERADE 13:28
punkgeekiptables -t nat -A PREROUTING -p udp --match multiport --sports  1701,500,4500,50 -j DNAT --to-destination #ip13:28
sdezielpunkgeek: did you intend to use *source* ports? I'm not sure why you handle UDP ports 50, 500 and 4500? Feels like some confusion with IPsec/IKE14:21
punkgeeksdeziel: What do you mean about source ports? as I understand, l2tp use 1701 port14:23
sdezielpunkgeek: `--sports` tells IPtables to match on source port numbers14:23
sdezieland it's more common to match on destination ports `--dports`14:24
sdezielbecause the source ports can be rewritten by say NAT/masquerading14:24
sdezielpunkgeek: could you elaborate on what you want to do? The big picture.14:27
punkgeeksdeziel: yes sorry, I wrote the mistake command in here. I'm using dports but it didn't work and here is the tcpdump output:14:28
punkgeekIP #My_IP.33807 > #middle_server.1701:  l2tp:[TLS](0/0)Ns=0,Nr=0 *MSGTYPE(SCCRQ) *PROTO_VER(1.0) *FRAMING_CAP(AS) *BEARER_CAP() FIRM_VER(1680) *HOST_NAME(Alireza-LP) VENDOR_NAME(xelerance.com) *ASSND_TUN_ID(34711) *RECV_WIN_SIZE(8)14:28
punkgeekIP #My_IP.33807 > #VPN_server.1701:  l2tp:[TLS](0/0)Ns=0,Nr=0 *MSGTYPE(SCCRQ) *PROTO_VER(1.0) *FRAMING_CAP(AS) *BEARER_CAP() FIRM_VER(1680) *HOST_NAME(Alireza-LP) VENDOR_NAME(xelerance.com) *ASSND_TUN_ID(34711) *RECV_WIN_SIZE(8)14:28
punkgeekIP #My_IP.33807 > #middle_server.1701:  l2tp:[TLS](0/0)Ns=1,Nr=0 *MSGTYPE(StopCCN) *ASSND_TUN_ID(34711) *RESULT_CODE(1/0 Server closing)14:28
punkgeekIP #My_IP.33807 > #VPN_server.1701:  l2tp:[TLS](0/0)Ns=1,Nr=0 *MSGTYPE(StopCCN) *ASSND_TUN_ID(34711) *RESULT_CODE(1/0 Server closing)14:29
punkgeeksdeziel: I want to connect to an l2tp server outside of our country but because of Iranian government censorship, it is blocked. So i want to use a tunnel server14:30
sdezielpunkgeek: are you using IPsec/L2TP?14:31
punkgeeksdeziel: yes, without preshared key14:32
sdezielpunkgeek: are you connecting to a VPN provider or a box you've setup yourself?14:32
punkgeeksdeziel: it is my vpn server. I can access it from outside of country but my friends are not able from inside.14:34
sdezielpunkgeek: I would suggest you look at wireguard or if you insist/need to use IPsec, use IKEv2 which let go of the overly complex IPsec/L2TP combo 14:36
=== elastic_dog is now known as Guest2898
=== pizzaiolo is now known as pizza
baldpopeI recently installed landscape server on-permise, however I'm seeing errors when inviting other admins via email, but I saw no way to configure an smtp server in landscape, I'd assume it's just using the on box ssmtp.conf / client?18:11
znfthe hell is landscape18:28
znfOh, I see18:29
znfmeh. 10 machines free, rest $$18:30
baldpopeyea just wanted to check it out18:34
baldpopecan do some of the same things with ansible, but having a dashboard is nice18:34

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!