Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

ER-Lite, VPN and browsing the local network.

$
0
0

Hello. 

 

Having recently setup and started to learn about the Edgerouter lite (which I have been very happy with), I am now trying to get a l2tp vpn working.

 

I have gotten to the point where I can remotely log in, however two problems remain:

 

The first is that connecting over 4g seems very hit and miss. Only wifi yields consistent connections.

 

Secondly, when I do connect, only the web is browseable. Nothing else seems accesible. I can't connect to other computers over smb/afp, ssh or connect to my hdhomerun box. I am posting my config.boot in the hope that someone may be able to help and tell my where I have gone wrong. 

 

Any help appreciated, James.

 

 

 

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 accept
            description "Allow IKE"
            destination {
                port 500
            }
            log disable
            protocol udp
        }
        rule 30 {
            action accept
            description "allow l2tp"
            destination {
                port 1701
            }
            log disable
            protocol udp
        }
        rule 40 {
            action accept
            description "Allow Nat-traversal"
            destination {
                port 4500
            }
            log disable
            protocol udp
        }
        rule 50 {
            action accept
            description "Allow ESP"
            log disable
            protocol 50
        }
        rule 60 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        address 192.168.1.1/24
        description Local
        duplex auto
        speed auto
            }
    ethernet eth1 {
        address dhcp
        description Internet
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth2 {
        address 192.168.2.1/24
        description "Local 2"
        disable
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN1 {
            authoritative disable
            subnet 192.168.1.0/24 {
                default-router 192.168.1.1
                dns-server 194.168.4.100
                dns-server 194.168.8.100
                lease 86400
                start 192.168.1.21 {
                    stop 192.168.1.240
                }
                static-mapping mac-pro {
                    ip-address 192.168.1.28
                    mac-address 00:26:08:ff:62:98
                }
                static-mapping vm {
                    ip-address 192.168.1.29
                    mac-address 00:0c:29:07:29:4c
                }
            }
        }
        shared-network-name LAN2 {
            authoritative disable
            subnet 192.168.2.0/24 {
                default-router 192.168.2.1
                dns-server 192.168.2.1
                lease 86400
                start 192.168.2.21 {
                    stop 192.168.2.240
                }
            }
        }
        shared-network-name unblock {
            authoritative disable
            disable
            subnet 192.168.3.0/24 {
                default-router 192.168.3.1
                dns-server 208.122.23.23
                dns-server 208.122.23.22
                lease 86400
                start 192.168.3.21 {
                    stop 192.168.3.200
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on eth0
            listen-on eth2
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    mdns {
        repeater {
            interface eth1
            interface eth0
        }
    }
    nat {
        rule 5010 {
            outbound-interface eth1
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    upnp {
    }
    upnp2 {
        listen-on eth0
        nat-pmp enable
        secure-mode disable
        wan eth1
    }
}
system {
    host-name ****
    login {
        user ******** {
            authentication {
                encrypted-password ***************************
                plaintext-password ""
            }
            full-name ************
            level admin
        }
        user ****** {
            authentication {
                encrypted-password ************
                plaintext-password ""
            }
            full-name ""
            level admin
        }
    }
    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 {
        }
    }
    offload {
        hwnat disable
        ipsec enable
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone UTC
    traffic-analysis {
        dpi enable
        export enable
    }
}
vpn {
    ipsec {
        auto-firewall-nat-exclude enable
        ipsec-interfaces {
            interface eth1
        }
        nat-networks {
            allowed-network 0.0.0.0/0 {
            }
        }
        nat-traversal enable
    }
    l2tp {
        remote-access {
            authentication {
                local-users {
                    username ******* {
                        password *********
                    }
                }
                mode local
            }
            client-ip-pool {
                start 192.168.1.241
                stop 192.168.1.245
            }
            dhcp-interface eth1
            dns-servers {
                server-1 192.168.1.1
                server-2 192.168.1.1
            }
            ipsec-settings {
                authentication {
                    mode pre-shared-secret
                    pre-shared-secret ***********************a
                }
                ike-lifetime 3600
            }
            mtu 1492
        }
    }
}


/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.8.5.4884695.160608.1057 */

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>