Score:0

mount network drive through VPN kill switch - Ubuntu 20.04 Synology DSM 7

jm flag

I know this has been asked before but nothing I try has worked. Any suggestions are appreciated!

I am trying to mount a network drive on Synology NAS 5.7 to my Ubuntu 20.04 server. If I disable ufw everything works but when I enable it, everything stops. I don't fully understand networking so I am stuck. This is what I have done so far. ANY help would be appreciated.

I have the following ufw rules with VPN kill switch

To                         Action      From
--                         ------      ----
Anywhere                   ALLOW IN    192.168.1.0/24            
Anywhere on tun0           ALLOW IN    Anywhere                  
137,138/udp (Samba)        ALLOW IN    192.168.1.0/24            
139,445/tcp (Samba)        ALLOW IN    192.168.1.0/24            
Anywhere (v6) on tun0      ALLOW IN    Anywhere (v6)             

Anywhere                   ALLOW OUT   Anywhere on tun0          
104.xxx.xx.xxx             ALLOW OUT   Anywhere                  
192.168.1.157 56118/udp    ALLOW OUT   192.168.1.233 32414/udp   
Anywhere (v6)              ALLOW OUT   Anywhere (v6) on tun0    

I am trying to mount this

sudo mount -t cifs --verbose //192.168.1.157/media /samba/media/external/temp_syn/ -o user=xx -o password=xxx

I get this at the prompt:

mount.cifs kernel mount options: ip=192.168.1.157,unc=\\192.168.1.157\media,user=alis,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

dmes - last few lines (I don't understand or know if it's related)

[   39.353010] kernel: [UFW BLOCK] IN= OUT=eno1 SRC=192.168.1.233 DST=192.168.1.1 LEN=75 TOS=0x00 PREC=0x00 TTL=64 ID=65456 DF PROTO=UDP SPT=46523 DPT=53 LEN=55 
[   40.789041] kernel: [UFW AUDIT] IN= OUT=eno1 SRC=fe80:0000:0000:0000:32d0:42ff:fef6:71e4 DST=ff02:0000:0000:0000:0000:0000:0000:0002 LEN=56 TC=0 HOPLIMIT=255 FLOWLBL=843352 PROTO=ICMPv6 TYPE=133 CODE=0 
[   42.463548] kernel: [UFW AUDIT INVALID] IN=eno1 OUT= MAC=30:d0:42:f6:71:e4:86:55:f0:30:d2:2e:08:00 SRC=192.168.1.123 DST=192.168.1.233 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=TCP SPT=58071 DPT=32400 WINDOW=2047 RES=0x00 ACK FIN URGP=0 
[   42.463589] kernel: [UFW BLOCK] IN=eno1 OUT= MAC=30:d0:42:f6:71:e4:86:55:f0:30:d2:2e:08:00 SRC=192.168.1.123 DST=192.168.1.233 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=TCP SPT=58071 DPT=32400 WINDOW=2047 RES=0x00 ACK FIN URGP=0 
[   44.610110] kernel: [UFW AUDIT] IN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:86:dd SRC=0000:0000:0000:0000:0000:0000:0000:0001 DST=0000:0000:0000:0000:0000:0000:0000:0001 LEN=80 TC=0 HOPLIMIT=64 FLOWLBL=26945 PROTO=TCP SPT=47716 DPT=631 WINDOW=65476 RES=0x00 SYN URGP=0 
[   44.610146] kernel: [UFW AUDIT] IN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:86:dd SRC=0000:0000:0000:0000:0000:0000:0000:0001 DST=0000:0000:0000:0000:0000:0000:0000:0001 LEN=60 TC=0 HOPLIMIT=64 FLOWLBL=972992 PROTO=TCP SPT=631 DPT=47716 WINDOW=0 RES=0x00 ACK RST URGP=0 

I have followed the accepted answer here UFW firewall still blocking SMB despite adding rules adding IPT_MODULES="nf_conntrack_netbios_ns" to /etc/default/ufw

I have opened ports and enabled samba but still no luck.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.