ok allora openvpn server installato su sme in modalità gateway
le interfaccie sono:
eth0 lan = 10.0.0.x netmask 255.255.255.0
eth0 wan = 192.168.1.1 netmask 255.255.255.0 (che' il gw che mette telecom sui sui router e tra l'altro non modificabili ...non ho un contratto business...)
a monte della wan c'e' appunto il router telecom con un suo firewall attivo, e sul quale ho fatto il port mapping (aperto le porte) dei servizi che mi servivano sullo sme, per l'openvpn ho aperto la 1194.
configurazione di un client configrato e funzionante (win xp):
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
dev tap
;dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
dev-node "OpenVPN"
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote miodomioniodelpiffero.com 1194
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody
# Try to preserve some state across restarts.
persist-key
persist-tun
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
ca ca.crt
cert cert.crt
key key.key
# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server
# If a tls-auth key is used on the server
# then every client must also have the key.
tls-auth statickey.txt 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
configurazione lato server (sme)
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
# Virtual Interface Configuration
port 1194
proto udp
dev tap0
# Drop down privileges
user nobody
group nobody
chroot /etc/openvpn/bridge
persist-key
persist-tun
# Certificates config
dh pub/dh.pem
ca pub/cacert.pem
cert pub/cert.pem
key priv/key.pem
tls-server
tls-auth priv/takey.pem 0
# CRL file for certificates verification
crl-verify pub/cacrl.pem
# Plugin for user-auth
# Server mode
server-bridge 10.0.0.1 255.255.255.0 10.0.0.20 10.0.0.25
# Options
keepalive 10 120
push "dhcp-option DOMAIN miodominiodelpiffero.com"
push "dhcp-option DNS 10.0.0.1"
push "dhcp-option WINS 10.0.0.1"
mtu-test
reneg-sec 3600
nice 5
# Management interface
management localhost 11194 management-pass.txt
# Clients options
client-config-dir ccd
max-clients 20
comp-lzo
# Log
status-version 2
status bridge-status.txt
verb 3
questo e' l'openvpn.conf dello sme
Michele