Gå til innhold

OpenVPN og samba


Palme

Anbefalte innlegg

Jeg tenkte jeg skulle kjøre samba over VPN. Har prøvd å få det til, men det vil bare ikke. Har prøvd noe i denne dur med smb.conf, men tror liksom ikke det er her problemet ligger,,

 

smb.conf:

 

[global]

workgroup = kamel
netbios name = kamel
encrypt passwords = True
server string = kamel-super-server
smb passwd file = /usr/local/samba/private/smbpasswd
log file = /var/log/samba/samba.log
max log size = 200
hosts allow = 10.8.0.0/24
interfaces  = tun0
bind interfaces = yes
deadtime = 7
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

 

og klient.conf

 

##
#  OpenVPN Configuration for GNS Service
##

# Specify self as a client
client

# Use the routing method for efficiency and simplicity
dev tun

# Specify server and port to connect to
remote min-ip-til-kamel 1194

# Don't bind to a particular port locally
nobind

# Enable compression - must also be enabled on server
comp-lzo

# Security keys and certificates
ca ca.crt
cert bob.crt
key bob.key

# Route all 10.30.1.0 addresses through vpn
route 10.30.1.0 255.255.255.0

ns-cert-type server

 

Ligger til server-configen:

 

##
#  OpenVPN Configuration
##

# Use the routing method for efficiency and simplicity
dev tun

#Tcp eller udp
proto udp


# Enable a full server on the 10.8.0.0 subnet for all clients
server 10.8.0.0 255.255.255.0

push "route 10.66.0.0 255.255.255.0"

# Write status logs in /etc/openvpn
ifconfig-pool-persist ipp.txt
status openvpn-status.log


# It's a good idea to reduce the OpenVPN
# daemon's privileges after initialization.
#
# You can uncomment this out on
# non-Windows systems.
user nobody
group nobody


# Launch the server explicitly on the default port
port 1194

# Enable compression - enable on client as well
comp-lzo

# Allow clients to contact each other through vpn
client-to-client

# Security keys and certificates
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem

# Ping the clients periodically to determine connectivity
keepalive 10 120

 

Noen som har klart å få dette til?

Endret av Lassie
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...