ciao a tutti, rieccomi.... sto facendo dei test come avevo preventivato
ho seguito questa guida ufficiale per realizzare un tunnel l2tp con psk (per adesso mi va bene cosi)
https://help.ubnt.com/hc/en-us/articles ... VPN-servertuttavia sto avendo delle difficolta di raggiungibilita di alcune risorse.
in pratica il tunnel sale ed è funzionante tanto che riesco a pingare sia il cpe del gestore che il mio edgerouter ma appena provo a pingare una risorsa dietro l'edgerouter ho timeout....
questa è la config di test:
testdicaz@ubnt:~$ show configuration
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
rule 21 {
action accept
description IKE
destination {
port 500
}
log disable
protocol udp
}
rule 22 {
action accept
description l2tp
destination {
port 1701
}
log disable
protocol udp
}
rule 23 {
action accept
description nat-t
destination {
port 4500
}
log disable
protocol udp
}
rule 24 {
action accept
description esp
log disable
protocol 50
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
address 192.168.1.2/24
description Internet
duplex auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
speed auto
}
ethernet eth1 {
description Local
duplex auto
speed auto
}
ethernet eth2 {
description Local
duplex auto
speed auto
}
ethernet eth3 {
description Local
duplex auto
speed auto
}
ethernet eth4 {
description Local
duplex auto
speed auto
}
loopback lo {
}
switch switch0 {
address 192.168.10.250/24
description Local
switch-port {
interface eth1
interface eth2
interface eth3
interface eth4
}
}
}
service {
dns {
forwarding {
cache-size 150
listen-on LISTENONPORT
listen-on switch0
}
}
gui {
https-port 443
}
nat {
rule 5010 {
description "masquerade for WAN"
outbound-interface eth0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
}
system {
gateway-address 192.168.1.1
host-name ubnt
login {
user xxxxx {
authentication {
encrypted-password ****************
}
level admin
}
}
name-server 8.8.8.8
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
}
vpn {
ipsec {
ipsec-interfaces {
interface eth0
}
nat-networks {
allowed-network 10.0.0.0/8 {
}
allowed-network 172.16.0.0/12 {
}
allowed-network 192.168.0.0/16 {
}
}
nat-traversal enable
}
l2tp {
remote-access {
authentication {
local-users {
username xxxxs {
password ****************
}
}
mode local
}
client-ip-pool {
start 192.168.100.1
stop 192.168.100.70
}
ipsec-settings {
authentication {
mode pre-shared-secret
pre-shared-secret ****************
}
ike-lifetime 3600
}
mtu 1024
outside-address 192.168.1.2
outside-nexthop 192.168.1.1
}
}
}
La topologia è questa
CPE Fastweb 192.168.1.1 --------------- DMZ 192.168.1.2 Edgerouter eth0
Eth1 Edgerouter (192.168.10.250/24)---------------192.168.10.0/24 (lan di test) NON RAGGIUNGIBILE
grazie a chi mi darà una mano