SAMBA standalone server - VPN

Discussion in 'Server Operation' started by falcon5, Sep 5, 2007.

  1. falcon5

    falcon5 New Member

    Hi,

    I send this message because i was wondering if someone does know something about VPN and Samba. The aim is to share files over the internet using samba. I read on a few forums that i needed a VPN connection but I don't know how to implement it.
    I do have a samba standalone setup (without any domain and i do not plan to have one in the nearest future) with a few shares. As i already said, the project concists of making some of those shares available trough the internet on another LAN. For better comprehension look at the scheme bellow.

    MyprivateLAN-------router1------SAMBASERVER----- router2---- INTERNET -----router3------ LANclient

    So the current setup concists of having shares between SAMBASERVER and MyprivateLAN trought router1

    Thanks in advance,
    falcon5
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. falcon5

    falcon5 New Member

  4. falcon5

    falcon5 New Member

    VPN seems to work now with pptpd but still can't access samba
    anyone some ideas?

    Thanks in advance.
    I'll post compete config once finished
     
  5. falko

    falko Super Moderator Howtoforge Staff

    Please make sure that no firewall blocks the ports 137 - 139.
     
  6. falcon5

    falcon5 New Member

    every router is in dmz so no firewall (and no software firewall is activated - with or without dmz it seems 137 and 139 get through...)is activated but i don't know how to tell to pptpd that it has to connect to samba or the other way round...

    logs below
    Sep 9 23:37:02 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3132 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:02 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3135 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:03 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3138 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:03 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3140 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:03 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3144 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:03 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3146 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:03 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3151 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3153 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3155 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3160 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=205 TOS=0x00 PREC=0x00 TTL=127 ID=3162 PROTO=UDP SPT=138 DPT=138 LEN=185
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3164 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3168 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:04 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3172 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:05 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3174 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:05 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3177 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:05 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3181 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:05 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3183 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:05 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3186 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:06 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3190 PROTO=UDP SPT=137 DPT=137 LEN=58
    Sep 9 23:37:06 server kernel: IN=ppp0 OUT=eth0 SRC=192.168.5.234 DST=192.168.5.255 LEN=78 TOS=0x00 PREC=0x00 TTL=127 ID=3192 PROTO=UDP SPT=137 DPT=137 LEN=58
     
    Last edited: Sep 9, 2007

Share This Page