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

VDSL2 modem in an SFP

$
0
0

Yesterday I came across this device Proscend 180-T. Basically a VDSL2 modem backwards compatible with ADSL/ADSL2+ in the form of an SFP. Though I think it is actually I think this is just a rebadged Metonia device. They also appear to have a G.Fast version in the works.

 

The best I can find is that you can configure/talk to the SFP using special ethernet packets, though there is very scant information on that.

 

The following are some places that seem to actually be selling it, the first is another rebadging in the USA, the second in Greece and the third in Australia.

 

 

https://www.versatek.com/product/vx-160ce-vdsl2-sfp-modem-remote-telco-grade/

 

https://www.nsys.gr/en/proscend-180-t-vdsl2-sfp-modem-module-telco.html

 

https://www.nsys.gr/en/proscend-180-t-vdsl2-sfp-modem-module-telco.html

 

They would make a really cool addition to the new ER4/6 lineup. Any chance Ubuquiti could offer badged versions with an update to EdgeOS to enable easy configuration of the device?

 


ER-X stopped passing traffic on WAN

$
0
0

Hoping someone can help, because I'm stumped.

 

I installed an ER-X for a client a couple months ago, everything has been fine until yesterday when they called that the internet was down. Confirmed that the link was up to their AP but no connection to the internet. I plugged my laptop into the ER-X LAN and still had no internet connection. I substituted the router and brought their ER-X to my office.

 

The router does the same thing here; I have the WAN port (eth0) of the ER-X connected to my ERL on a segregated subnet, 192.168.10.X. I can ping 192.168.10.1 from the dashboard of the ER-X as well as from the terminal of my laptop connected to the ER-X LAN. Pinging any external hostname or IP fails.

 

I've tried:

  1. Reinstalling the firmware, 1.9.7+hotfix.4
  2. Factory reset, setup with Basic Setup wizard and WAN on eth0
  3. Factory reset, setup with Basic Setup wizard and WAN on eth4 to make sure this isn't specific to eth0
  4. Restored saved config

Nothing changes the issue. Looking at the logs, I see this entry but am not sure if it's related:

 No subnet declaration for eth0 (192.168.10.8).
Oct 31 01:42:04 PieperCafe dhcpd: ** Ignoring requests on eth0.  If this is not what
Oct 31 01:42:04 PieperCafe dhcpd:    you want, please write a subnet declaration
Oct 31 01:42:04 PieperCafe dhcpd:    in your dhcpd.conf file for the network segment
Oct 31 01:42:04 PieperCafe dhcpd:    to which interface eth0 is attached. **

 

Sanitized config.boot:

firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name LAN_IN {
default-action accept
description "LAN to Internet"
}
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
}
}
rule 30 {
action drop
application {
category P2P
}
description "Drop P2P"
log disable
p2p {
all
}
protocol all
}
}
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
}
}
}
name WAN_Out {
default-action accept
description ""
rule 1 {
action drop
application {
category P2P
}
description "Drop P2P"
log disable
protocol all
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
address dhcp
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
poe {
output off
}
speed auto
}
loopback lo {
}
switch switch0 {
address 192.168.1.1/24
description Local
firewall {
in {
name LAN_IN
}
}
mtu 1500
switch-port {
interface eth1 {
}
interface eth2 {
}
interface eth3 {
}
interface eth4 {
}
vlan-aware disable
}
}
}
service {
dhcp-server {
disabled false
hostfile-update disable
shared-network-name LAN {
authoritative enable
subnet 192.168.1.0/24 {
default-router 192.168.1.1
dns-server 192.168.1.1
lease 86400
start 192.168.1.38 {
stop 192.168.1.243
}
}
}
use-dnsmasq disable
}
dns {
forwarding {
cache-size 150
listen-on switch0
}
}
gui {
http-port 80
https-port 443
older-ciphers enable
}
nat {
rule 5010 {
description "masquerade for WAN"
outbound-interface eth0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
unms {
disable
}
}
system {
host-name PieperCafe
login {
user pieperadmin {
authentication {
encrypted-password PASSWORD
}
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 {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone America/Los_Angeles
traffic-analysis {
dpi enable
export enable
}
}
traffic-control {
advanced-queue {
root {
queue 1023 {
attach-to global
bandwidth 1000mbit
description UBNT-BQ
}
}
}
}


/* 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-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.9.7+hotfix.4.5024279.171006.0255 */

Output of show log:

pieperadmin@PieperCafe:~$ show log
Oct 31 01:41:10 PieperCafe rsyslogd: set SCM_CREDENTIALS failed on '/dev/log': Protocol not available
Oct 31 01:41:10 PieperCafe kernel: Linux version 3.10.14-UBNT (root@edgeos-builder2) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Wed Aug 30 02:34:16 PDT 2017
Oct 31 01:41:10 PieperCafe kernel:
Oct 31 01:41:10 PieperCafe kernel: The CPU feqenuce set to 880 MHz
Oct 31 01:41:10 PieperCafe kernel: GCMP present
Oct 31 01:41:10 PieperCafe kernel: Zone ranges:
Oct 31 01:41:10 PieperCafe kernel: Normal [mem 0x00000000-0x0fffffff]
Oct 31 01:41:10 PieperCafe kernel: Movable zone start for each node
Oct 31 01:41:10 PieperCafe kernel: Early memory node ranges
Oct 31 01:41:10 PieperCafe kernel: node 0: [mem 0x00000000-0x0fffffff]
Oct 31 01:41:10 PieperCafe kernel: Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Oct 31 01:41:10 PieperCafe kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Oct 31 01:41:10 PieperCafe kernel: Kernel command line: console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rootsqimg=squashfs.img rootsqwdir=w rw
Oct 31 01:41:10 PieperCafe kernel: launch: starting cpu1
Oct 31 01:41:10 PieperCafe kernel: launch: cpu1 gone!
Oct 31 01:41:10 PieperCafe kernel: Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Oct 31 01:41:10 PieperCafe kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: launch: starting cpu2
Oct 31 01:41:10 PieperCafe kernel: launch: cpu2 gone!
Oct 31 01:41:10 PieperCafe kernel: Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Oct 31 01:41:10 PieperCafe kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: launch: starting cpu3
Oct 31 01:41:10 PieperCafe kernel: launch: cpu3 gone!
Oct 31 01:41:10 PieperCafe kernel: Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Oct 31 01:41:10 PieperCafe kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Oct 31 01:41:10 PieperCafe kernel: 4 CPUs re-calibrate udelay(lpj = 1167360)
Oct 31 01:41:10 PieperCafe kernel: Ralink gpio driver initialized
Oct 31 01:41:10 PieperCafe kernel: i2cdrv_major = 218
Oct 31 01:41:10 PieperCafe kernel: flash manufacture id: c2, device id 20 15
Oct 31 01:41:10 PieperCafe kernel: MX25L1605D(c2 2015c220) (2048 Kbytes)
Oct 31 01:41:10 PieperCafe kernel: mtd .name = raspi, .size = 0x00200000 (2M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Oct 31 01:41:10 PieperCafe kernel: Creating 1 MTD partitions on "raspi":
Oct 31 01:41:10 PieperCafe kernel: 0x000000000000-0x000000080000 : "SPI_FLASH"
Oct 31 01:41:10 PieperCafe kernel: MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
Oct 31 01:41:10 PieperCafe kernel: Enable NFI Clock
Oct 31 01:41:10 PieperCafe kernel: # MTK NAND # : Use HW ECC
Oct 31 01:41:10 PieperCafe kernel: NAND ID [01 DA 90 95 46, 00909546]
Oct 31 01:41:10 PieperCafe kernel: Support this Device in MTK table! 1da
Oct 31 01:41:10 PieperCafe kernel: [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
Oct 31 01:41:10 PieperCafe kernel: Signature matched and data read!
Oct 31 01:41:10 PieperCafe kernel: load_fact_bbt success 2047
Oct 31 01:41:10 PieperCafe kernel: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Oct 31 01:41:10 PieperCafe kernel: last message repeated 15 times
Oct 31 01:41:10 PieperCafe kernel: Creating 7 MTD partitions on "MT7621-NAND":
Oct 31 01:41:10 PieperCafe kernel: 0x000000000000-0x00000ff80000 : "ALL"
Oct 31 01:41:10 PieperCafe kernel: 0x000000000000-0x000000080000 : "Bootloader"
Oct 31 01:41:10 PieperCafe kernel: 0x000000080000-0x0000000e0000 : "Config"
Oct 31 01:41:10 PieperCafe kernel: 0x0000000e0000-0x000000140000 : "eeprom"
Oct 31 01:41:10 PieperCafe kernel: 0x000000140000-0x000000440000 : "Kernel"
Oct 31 01:41:10 PieperCafe kernel: 0x000000440000-0x000000740000 : "Kernel2"
Oct 31 01:41:10 PieperCafe kernel: 0x000000740000-0x00000ff00000 : "RootFS"
Oct 31 01:41:10 PieperCafe kernel: [mtk_nand] probe successfully!
Oct 31 01:41:10 PieperCafe kernel: UBNT BD mac f09fc2df6aba kidx 1 mrev 19 serial F09FC2DF6ABA type e50
Oct 31 01:41:10 PieperCafe kernel: rdm_major = 253
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRH -- : 0x0000f09f
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRL -- : 0xc2df6aba
Oct 31 01:41:10 PieperCafe kernel: Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500!
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRH -- : 0x0000f09f
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRL -- : 0xc2df6aba
Oct 31 01:41:10 PieperCafe kernel: PROC INIT OK!
Oct 31 01:41:10 PieperCafe kernel: Ralink I2C Init
Oct 31 01:41:10 PieperCafe kernel: UBI: attaching mtd7 to ubi0
Oct 31 01:41:10 PieperCafe kernel: UBI: scanning is finished
Oct 31 01:41:10 PieperCafe kernel: UBI: attached mtd7 (name "RootFS", size 247 MiB) to ubi0
Oct 31 01:41:10 PieperCafe kernel: UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
Oct 31 01:41:10 PieperCafe kernel: UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
Oct 31 01:41:10 PieperCafe kernel: UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
Oct 31 01:41:10 PieperCafe kernel: UBI: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
Oct 31 01:41:10 PieperCafe kernel: UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
Oct 31 01:41:10 PieperCafe kernel: UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 988914325
Oct 31 01:41:10 PieperCafe kernel: UBI: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
Oct 31 01:41:10 PieperCafe kernel: UBI: background thread "ubi_bgt0d" started, PID 54
Oct 31 01:41:10 PieperCafe kernel: UBIFS: background thread "ubifs_bgt0_0" started, PID 55
Oct 31 01:41:10 PieperCafe kernel: UBIFS: recovery needed
Oct 31 01:41:10 PieperCafe kernel: UBIFS: recovery completed
Oct 31 01:41:10 PieperCafe kernel: UBIFS: mounted UBI device 0, volume 0, name "troot"
Oct 31 01:41:10 PieperCafe kernel: UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Oct 31 01:41:10 PieperCafe kernel: UBIFS: FS size: 244428800 bytes (233 MiB, 1925 LEBs), journal size 12189696 bytes (11 MiB, 96 LEBs)
Oct 31 01:41:10 PieperCafe kernel: UBIFS: reserved for root: 4952683 bytes (4836 KiB)
Oct 31 01:41:10 PieperCafe kernel: UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2710C8C9-9BF6-4EEB-80DB-843B71999842, small LPT model
Oct 31 01:41:10 PieperCafe kernel: Algorithmics/MIPS FPU Emulator v1.5
Oct 31 01:41:10 PieperCafe kernel: ubnt_platform: module license 'Proprietary' taints kernel.
Oct 31 01:41:10 PieperCafe kernel: Disabling lock debugging due to kernel taint
Oct 31 01:41:10 PieperCafe kernel: Registering char device flash0 (200) succeeds
Oct 31 01:41:10 PieperCafe kernel: Raeth v3.1 (Tasklet)
Oct 31 01:41:10 PieperCafe kernel:
Oct 31 01:41:10 PieperCafe kernel: phy_tx_ring = 0x0f6f2000, tx_ring = 0xaf6f2000
Oct 31 01:41:10 PieperCafe kernel:
Oct 31 01:41:10 PieperCafe kernel: phy_rx_ring0 = 0x0f6f4000, rx_ring0 = 0xaf6f4000
Oct 31 01:41:10 PieperCafe kernel: change HW-TRAP to 0x17c8f
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRH -- : 0x0000f09f
Oct 31 01:41:10 PieperCafe kernel: GMAC1_MAC_ADRL -- : 0xc2df6aba
Oct 31 01:41:10 PieperCafe kernel: eth0: ===> VirtualIF_open
Oct 31 01:41:10 PieperCafe kernel: eth1: ===> VirtualIF_open
Oct 31 01:41:10 PieperCafe kernel: eth2: ===> VirtualIF_open
Oct 31 01:41:10 PieperCafe kernel: eth3: ===> VirtualIF_open
Oct 31 01:41:10 PieperCafe kernel: eth4: ===> VirtualIF_open
Oct 31 01:41:10 PieperCafe kernel: CDMA_CSG_CFG = 81000000
Oct 31 01:41:10 PieperCafe kernel: GDMA1_FWD_CFG = 21710000
Oct 31 01:41:11 PieperCafe kernel: ESW: Link Status Changed - Port1 Link UP
Oct 31 01:41:12 PieperCafe kernel: ESW: Link Status Changed - Port0 Link UP
Oct 31 01:41:13 PieperCafe kernel: ip_set: protocol 6
Oct 31 01:41:13 PieperCafe NSM[313]: NSM-6: Initializing memdbg: ptr=0x693594 history-size=1024 memdbg-size=143552
Oct 31 01:41:13 PieperCafe kernel: Type=Linux
Oct 31 01:41:13 PieperCafe NSM[324]: NSM-6: 1000 MB
Oct 31 01:41:13 NSM[324]: last message repeated 2 times
Oct 31 01:41:13 PieperCafe NSM[324]: NSM-6: 10 MB
Oct 31 01:41:13 NSM[324]: last message repeated 2 times
Oct 31 01:41:13 PieperCafe RIB[327]: RIB-6: Initializing memdbg: ptr=0x586984 history-size=1024 memdbg-size=143552
Oct 31 01:41:13 PieperCafe NSM[324]: NSM-4: Could not create VRF table with identifier 1 in the MPLS Forwarder
Oct 31 01:41:13 PieperCafe RIB[334]: RIB-6: RIBd (1.2.0) starts
Oct 31 01:41:18 PieperCafe IMI[311]: IMI-6: imi_server_send_config called (PM 1)
Oct 31 01:41:18 PieperCafe IMI[311]: IMI-6: imi_server_send_config called (PM 42)
Oct 31 01:41:22 PieperCafe rl-system.init: Checking/creating SSH host keys.
Oct 31 01:41:26 PieperCafe rsyslogd: set SCM_CREDENTIALS failed on '/dev/log': Protocol not available
Oct 31 01:41:26 PieperCafe rsyslogd: set SCM_CREDENTIALS failed on '/dev/log': Protocol not available
Oct 31 01:41:39 PieperCafe kernel: eth0: ===> VirtualIF_open
Oct 31 01:41:43 PieperCafe kernel: eth4: ===> VirtualIF_open
Oct 31 01:41:46 PieperCafe ntpd[1066]: ntpd 4.2.6p2@1.2194-o Thu Aug 3 08:17:18 UTC 2017 (1)
Oct 31 01:41:46 PieperCafe ntpd[1067]: proto: precision = 34.011 usec
Oct 31 01:41:46 PieperCafe kernel: eth3: ===> VirtualIF_open
Oct 31 01:41:48 PieperCafe kernel: eth2: ===> VirtualIF_open
Oct 31 01:41:51 PieperCafe kernel: eth1: ===> VirtualIF_open
Oct 31 01:41:57 PieperCafe ubnt-service-ssh: waiting for netplugd to be started...
Oct 31 01:42:02 PieperCafe ubnt-service-gui: waiting for netplugd to be started...
Oct 31 01:42:04 PieperCafe dhcpd:
Oct 31 01:42:04 PieperCafe dhcpd: No subnet declaration for eth0 (192.168.10.8).
Oct 31 01:42:04 PieperCafe dhcpd: ** Ignoring requests on eth0. If this is not what
Oct 31 01:42:04 PieperCafe dhcpd: you want, please write a subnet declaration
Oct 31 01:42:04 PieperCafe dhcpd: in your dhcpd.conf file for the network segment
Oct 31 01:42:04 PieperCafe dhcpd: to which interface eth0 is attached. **
Oct 31 01:42:04 PieperCafe dhcpd:
Oct 31 01:42:10 PieperCafe kernel: HTB: quantum of class 700003FF is big. Consider r2q change.
Oct 31 01:42:10 PieperCafe netplugd: Starting network plug daemon: netplugd.
Oct 31 01:42:16 PieperCafe ubnt-service-gui: starting the GUI service.
Oct 31 01:42:16 PieperCafe ubnt-service-ssh: starting the SSH service (see messages from sshd).
Oct 31 01:45:08 PieperCafe ntpd_intres[1775]: host name not found: 0.ubnt.pool.ntp.org
Oct 31 01:45:48 PieperCafe ntpd_intres[1775]: host name not found: 1.ubnt.pool.ntp.org
Oct 31 01:46:28 PieperCafe ntpd_intres[1775]: host name not found: 2.ubnt.pool.ntp.org
Oct 31 01:47:08 PieperCafe ntpd_intres[1775]: host name not found: 3.ubnt.pool.ntp.org
Oct 31 01:47:50 PieperCafe ntpd_intres[1775]: host name not found: 0.ubnt.pool.ntp.org
Oct 31 01:47:57 PieperCafe sshd[1862]: pam_unix(sshd:auth): check pass; user unknown
Oct 31 01:47:57 PieperCafe sshd[1862]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.38
Oct 31 01:48:05 PieperCafe sshd[1862]: pam_unix(sshd:auth): check pass; user unknown
Oct 31 01:48:30 PieperCafe ntpd_intres[1775]: host name not found: 1.ubnt.pool.ntp.org
Oct 31 01:49:10 PieperCafe ntpd_intres[1775]: host name not found: 2.ubnt.pool.ntp.org
Oct 31 01:49:50 PieperCafe ntpd_intres[1775]: host name not found: 3.ubnt.pool.ntp.org
Oct 31 01:52:33 PieperCafe ntpd_intres[1775]: host name not found: 0.ubnt.pool.ntp.org
Oct 31 01:52:39 PieperCafe kernel: Bridge firewalling registered
Oct 31 01:53:13 PieperCafe ntpd_intres[1775]: host name not found: 1.ubnt.pool.ntp.org
Oct 31 01:53:53 PieperCafe ntpd_intres[1775]: host name not found: 2.ubnt.pool.ntp.org
Oct 31 01:54:33 PieperCafe ntpd_intres[1775]: host name not found: 3.ubnt.pool.ntp.org
Oct 31 01:59:15 PieperCafe ntpd_intres[1775]: host name not found: 0.ubnt.pool.ntp.org
Oct 31 01:59:55 PieperCafe ntpd_intres[1775]: host name not found: 1.ubnt.pool.ntp.org

 Any help would be greatly appreciated! 

Missing firewall config after web session timeout

$
0
0

I have a very strange problem and possibly a bug.

 

I was editing a firewall rule using the web interface, renaming it to be more descriptive. Once done editing the name I pressing "save" button to apply the changes. Everything seemed to be going well until I received a prompt stating my session had timed out, and I needed to log in again.

 

After loggin in all named firewall rules except the name I was busy saving at the time the sessions timed out
was gone from the web interface.

 

Investigating in the CLI showed the rules were missing as shown on the web interface. The only firewall rules was the rules I'd been working on. Checking the config.boot in /config/ showed last update timestamp of roughly the incident time. Checking the config.boot showed the firewall rules was missing as well.

 

I had a backup of the latest config, copied the backup to my home directory, made a backup of the broken config and replaced it with the known working config. running "load /config/config.boot" returned errors of duplicate firewall rules. Firewall rules which the config and webinterface was showing to be missing.

 

Running iptables as root showed the firewall rules were actually still in place and had been in place the whole time, but now the device is in uncommit state.

 

I'm really not sure how to proceed forward. I've since discarded the changes, but still need to get the router back to the state before the timeout.

 

Is there any way to get the router state and config.boot back into sync without having to reset the router and loading from config.boot without any previos config loaded ?

 

IGMP-Proxy Issue

$
0
0

Hello Guys 

 

I have an issue with IGMP Proxy the traffic that the router is forwarding is not the same on the upstream interface than the downstream interface as you can see here 

 

Capture.JPG

 

this is my configuration about IGMP proxy

 

protocols {
    igmp-proxy {
        interface eth4 {
            alt-subnet 0.0.0.0/0
            role upstream
            threshold 10
        }
        interface eth6 {
            alt-subnet 0.0.0.0/0
            role downstream
            threshold 1
        }
    }

any idea why?

 

Thanks, Regards.

Multiple static IPs on wan and source based NAT performance

$
0
0

Have a strange issue that I'm able to replicate.

I have 3 static IPs on our wan.

I have 2 seperate networks, one for our pcs, and one for our wifi network.

I had source based NAT enabled for my wifi network, it works... Wifi clients do get a different external IP than LAN.

But we're experiencinc terrible packet loss from our main network.

As soon as I disable the NAT rule for the wifi network, everything goes back to normal.

I'm currently using the default masqurade and just made a single rule for the WIFI.

I've also tried disabling the default masqurade and creating 2 seperate source based nat rules, but the packet loss returns.

Is this a known issue, or to be expected when using source based nat?

ER-8: VLANs

$
0
0

I have followed the the UBNT "EdgeRouter on a Stick"

 

ES-8 have 4 VLANs configured - they communcate over a wireless backbone to the ER-8 port eth1

 

 

  • eth1.10 (VIF 10) - 10.0.10.1/24
  • eth1.20 (VIF 20) - 10.0.20.1/24
  • eth1.20 (VIF 20) - 10.0.30.1/24
  • eth1.99 (VIF 99) - 10.0.99.1/24

I need connect other devices that are in the same respective subnet (that are phyiscally in same area as ER-8)

 

Can I assign other ports on the ER-8 to the respective VIF's

 

i.e. Eth2 to VIF 10...Eth3 to VIF 20

 

 

Request: implement LLDP-MIB

$
0
0

Can you implement LLDP-MIB for EdgeRouters?

 

This makes the LLDP data available to our network mapping software (LibreNMS) and would be a great asset. 

 

Thank you.

Dual WAN & Load Balance

$
0
0

Hello, 

 

I'm somehow new to EdgeOS . I'm trying to accomplish the following :

 

I have an ER-8  and 4 incoming Internet connections, I want to make ports 1 -4 WAN  port for load balancing and failover and port 5 LAN port to give out DHCP.

 

 

I can't find a lot of info  on the forum just one generic link  but the info is too vague, any info or help will appreciatted.

 

Thank You


Ethernet errors

$
0
0

How do I see the ethernet errors on a given port on an EP-R6?

 

Thanks

Invalid packets after 1.9.7 update

$
0
0

Hi - it seems something changed when I went from 1.9.0 to 1.9.7hotfix4.

 

I have a firewall rule allowing RDP from one host on my main subnet to another separate subnet that goes through a pfSense router.  I had a rule for source=host1.subnet1 dest=host2.subnet2 port=3389 with established and new selected.  After much diagnosing I found that now, with 1.9.7, checking 'Invalid' in the state list allows it to work.

 

e.,g. without 'invalid enable' it's not allowing a connection.  I did logging and it allows one SYN through, then all the ACKs get dropped as invalid.

 

rule 20 {
action accept
description "Allow RDP"
destination {
address 192.168.2.10 # this goes through my pfsense router interface e.g. 192.168.1.50 might be pfsense, I have a route for 192.168.2.0/24 -> 192.168.1.50
port 3389
}
log enable
protocol tcp
source {
address 192.168.1.25/32
}
state {
established enable
invalid enable
new enable
related enable
}
}

 

Is this an expected change?  In general I can't figure out why the packets are getting flagged as invalid.

ER-X Network Topology Question

$
0
0

This is for my home network. I just want to make sure that I have set up my network in the best way. It's possible that with my current connection speed, this doesn't matter that much and I am overthinking things. Right now I just have a 20/1 DSL connection, but I want to upgrade to a faster connection in the next couple of months.

 

My modem is in bridge mode to my ER-X, which handles the pppoe connection. I then have the eth1-4 ports being used for connecting my wireless access point and a powerline network adapter to shoot a connection to some devices accross the house. Should I be putting a switch in between the ER-X and the other devices or is it ok to just use the ER-X ports. Does it even matter for the ER-x?

BGP Multi Path (ECMP) config

$
0
0

I'm currently running EdgeOS 1.9.7 hotfix4 on my EdgeRouter PoE-5 and like to use multi path (ECMP) to loadbalance between 2 bgp peers.. is this possible? The routes seems to be equal cost but the first peer that is online is selected as best route.

 

This is my setup..

-- begin bgp config --

protocols {
    bgp 65123 {
        neighbor 172.16.1.4 {
            remote-as 65101
            soft-reconfiguration {
                inbound
            }
        }
        neighbor 172.16.1.5 {
            remote-as 65101
            soft-reconfiguration {
                inbound
            }
        }
        redistribute {
            static {
            }
        }
    }


-- end bgp config --

ubnt@ubnt:~$ show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       > - selected route, * - FIB route, p - stale info
IP Route Table for VRF "default"
S    *> 0.0.0.0/0 [210/0] via x.x.x.x, eth0
C    *> x.x.x.x.0/23 is directly connected, eth0
C    *> 127.0.0.0/8 is directly connected, lo
B    *> 172.16.2.0/24 [20/0] via 172.16.1.4, eth1, 00:27:40
C    *> 172.16.1.0/24 is directly connected, eth1
B       172.16.1.0/24 [20/0] via 172.16.1.4 inactive, 00:27:40

ubnt@ubnt:~$ show ip bgp
BGP table version is 8, local router ID is 172.16.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, l - labeled
              S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
    Network          Next Hop            Metric    LocPrf       Weight Path
*>  0.0.0.0/0        x.x.x.1                                    32768  ?
*>  172.16.2.0/24    172.16.1.4          0                      0      65101 ?
*                    172.16.1.5          0                      0      65101 ?
*>  172.16.3.0/24    172.16.1.4          0                      0      65101 ?
*                    172.16.1.5          0                      0      65101 ?

Total number of prefixes 4

EdgeRouter Lite — Interface Connection Working MIB?

$
0
0

Hi,

 

Is there a MIB entry for if an interface can successfully send/receive traffic to the internet? For example, my EdgeRouter Lite is behind my cable modem, so although it can always ping 192.168.100.1 (the modem), it can't always get a route to, say, google — the cable might be out. Is there a MIB for when the link to (for example) Google might be down?

Similarly, I have a link vtun0. Is there a way I could use SNMP to determine when this interface is able to successfully route traffic?

EdgeRouter X randomly transmits

$
0
0
Hi all,

I'm running 5 EdgeRouter X's, with the latest firmware which are primarily used as a service network for our security cameras. All the ISP's are using max bandwidth packages from each (over 200mbps down and 50mbps up).

Four sites have been working without issue, but one site randomly stops and starts transmitting throughout the day. The router does not reboot as the uptime shows multiple days, and I don't believe the bandwidth is being maxed out.

When the issue occurs, I'm able to traverse the LAN, but outside users are unable to connect and we're not able to get out to the Internet.

The config is pretty basic. We have three static NATs, and a few firewall rules. That's about it.

Can I enable better logs? Right now I'm only getting when interfaces go up or down.

If anyone has any suggestions, I would appreciate it.

Thanks
Thomas

What is the newest firmware version with "basic setup" wizard that won't brick your router

$
0
0

So my first ER-X bricked right away when I got it up and updated to the latest firmware. Waited 3 weeks for the replacement and have zero interest in waiting again since these things seem to brick more than what is acceptable.


Strange IP address on my net

$
0
0

Hi!

Three days ago i have oper the web interface of my ER-X and in the Traffic Analysis page a second befor clear the data i see an Ip addres that starts with 52. Can be a way in order to recover all ip passed on er-x?

Unfortunately i can't remember the address but i'v very scary for this!

On my net i have the ER-X, a unifi switch, can be a ubiquiti service?

this my configuration:

firewall {
    all-ping enable
    broadcast-ping disable
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name GUEST_IN {
        default-action accept
        description ""
        rule 1 {
            action drop
            description "Drop traffic to other LANs"
            destination {
                address 10.0.0.0/8
            }
            log disable
            protocol all
        }
    }
    name GUEST_LOCAL {
        default-action drop
        description ""
        rule 1 {
            action accept
            description "Allow client DHCP"
            destination {
                port 67
            }
            log disable
            protocol udp
        }
    }
    name VLAN_IN {
        default-action accept
        description ""
        rule 10 {
            action accept
            description "Accept established-related"
            log disable
            protocol all
            state {
                established enable
                invalid disable
                new disable
                related enable
            }
        }
        rule 20 {
            action accept
            description Plex
            destination {
                address 10.0.0.3
                port 32400
            }
            log disable
            protocol tcp
        }
        rule 30 {
            action drop
            description "Drop traffic to other LANs"
            destination {
                address 10.0.0.0/8
            }
            log disable
            protocol all
        }
    }
    name VLAN_LOCAL {
        default-action drop
        description ""
        rule 1 {
            action accept
            description "Allow client DHCP non necessario"
            destination {
                port 67
            }
            disable
            log disable
            protocol udp
        }
        rule 2 {
            action accept
            description "Allow client DNS"
            destination {
                port 53
            }
            log disable
            protocol tcp_udp
        }
    }
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        enable-default-log
        rule 10 {
            action accept
            description "Allow established/related"
            log disable
            state {
                established enable
                invalid disable
                new disable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            log disable
            state {
                invalid enable
            }
        }
        rule 21 {
            action accept
            description 443-10000
            destination {
                address 10.0.2.2
                port 15111-15112
            }
            log disable
            protocol tcp
        }
        rule 23 {
            action accept
            description "13242"
            destination {
                address 10.0.0.5
                port 13242
            }
            log disable
            protocol tcp
        }
        rule 24 {
            action accept
            description "59754"
            destination {
                address 10.0.0.5
                port 59754
            }
            log disable
            protocol udp
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        enable-default-log
        rule 10 {
            action accept
            description "Allow L2TP"
            destination {
                port 500,1701,4500
            }
            log disable
            protocol udp
        }
        rule 20 {
            action accept
            description "Allow ESP"
            log disable
            protocol esp
        }
        rule 30 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 40 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        description Switch
        duplex auto
        speed auto
    }
    ethernet eth1 {
        description Airport
        duplex auto
        speed auto
    }
    ethernet eth2 {
        description "Apple TV"
        duplex auto
        speed auto
    }
    ethernet eth3 {
        description Par
        duplex auto
        speed auto
    }
    ethernet eth4 {
        address 192.168.79.200/24
        description Internet
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        poe {
            output pthru
        }
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        description Local
        mtu 1500
        switch-port {
            interface eth0 {
                vlan {
                    pvid 1
                    vid 20
                    vid 30
                    vid 40
                }
            }
            interface eth1 {
                vlan {
                    pvid 1
                    vid 1003
                }
            }
            interface eth2 {
                vlan {
                    pvid 30
                }
            }
            interface eth3 {
                vlan {
                    pvid 20
                }
            }
            vlan-aware enable
        }
        vif 1 {
            address 10.0.0.1/24
            description Home
            mtu 1500
        }
        vif 20 {
            address 10.0.2.1/24
            description Service
            firewall {
                in {
                    name VLAN_IN
                }
                local {
                    name VLAN_LOCAL
                }
            }
            mtu 1500
        }
        vif 30 {
            address 10.0.3.1/24
            description Plex
            firewall {
                in {
                    name VLAN_IN
                }
                local {
                    name VLAN_LOCAL
                }
            }
            mtu 1500
        }
        vif 40 {
            address 10.0.4.1/24
            description NVR
            firewall {
                in {
                    name VLAN_IN
                }
                local {
                    name VLAN_LOCAL
                }
            }
            mtu 1500
        }
        vif 1003 {
            address 172.16.0.1/24
            description Guest
            firewall {
                in {
                    name GUEST_IN
                }
                local {
                    name GUEST_LOCAL
                }
            }
            mtu 1500
        }
    }
}
port-forward {
    auto-firewall disable
    hairpin-nat disable
    wan-interface eth4
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name GUEST {
            authoritative disable
            subnet 172.16.0.0/24 {
                default-router 172.16.0.1
                dns-server 8.8.8.8
                dns-server 8.8.4.4
                lease 3600
                start 172.16.0.2 {
                    stop 172.16.0.5
                }
            }
        }
        shared-network-name HOME {
            authoritative enable
            subnet 10.0.0.0/24 {
                default-router 10.0.0.1
                dns-server 10.0.0.1
                lease 86400
                start 10.0.0.2 {
                    stop 10.0.0.15
                }
            }
        }
        shared-network-name NVR {
            authoritative enable
            subnet 10.0.4.0/24 {
                default-router 10.0.4.1
                dns-server 10.0.4.1
                lease 86400
                start 10.0.4.2 {
                    stop 10.0.4.5
                }
            }
        }
        shared-network-name PLEX {
            authoritative enable
            subnet 10.0.3.0/24 {
                default-router 10.0.3.1
                dns-server 10.0.3.1
                dns-server 8.8.8.8
                lease 86400
                start 10.0.3.2 {
                    stop 10.0.3.6
                }
            }
        }
        shared-network-name SERVICE {
            authoritative enable
            subnet 10.0.2.0/24 {
                default-router 10.0.2.1
                dns-server 10.0.2.1
                lease 3600
                start 10.0.2.2 {
                    stop 10.0.2.3
                }

            }
        }
        use-dnsmasq disable
    }
    dns {
        forwarding {
            cache-size 200
            listen-on switch0.1
            listen-on switch0.20
            listen-on switch0.30
            listen-on switch0.40
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 2 {
            description 443-10000
            destination {
                port 15111-15112
            }
            inbound-interface eth4
            inside-address {
                address 10.0.2.2
                port 15111-15112
            }
            log disable
            protocol tcp
            type destination
        }
        rule 4 {
            description "59754"
            destination {
                port 59754
            }
            inbound-interface eth4
            inside-address {
                address 10.0.0.5
                port 59754
            }
            log disable
            protocol udp
            type destination
        }
        rule 5 {
            description "13242"
            destination {
                port 13242
            }
            inbound-interface eth4
            inside-address {
                address 10.0.0.5
                port 13242
            }
            log disable
            protocol tcp
            type destination
        }
        rule 5010 {
            description "masquerade for WAN"
            log disable
            outbound-interface eth4
            protocol all
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    unms {
        disable
    }
}
system {
    gateway-address 192.168.79.254
    host-name HomeRouter
    login {
        user ale {
            authentication {
                encrypted-password 
                plaintext-password ""
            }
            full-name Alessandro
            level admin
        }
    }
    name-server 192.168.79.254
    name-server 8.8.8.8
    name-server 8.8.4.4
    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 enable
        ipsec disable
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone Europe/Rome
    traffic-analysis {
        dpi enable
        export enable
    }
}
vpn {
    ipsec {
        auto-firewall-nat-exclude disable
        ipsec-interfaces {
            interface eth4
        }
    }
    l2tp {
        remote-access {
            authentication {
                local-users {
                    username alessandro {
                        password 
                    }
                    username colmar {
                        password 
                    }
                    username giusi {
                        password 
                    }
                }
                mode local
            }
            client-ip-pool {
                start 10.0.0.51
                stop 10.0.0.53
            }
            dns-servers {
                server-1 8.8.8.8
                server-2 8.8.4.4
            }
            ipsec-settings {
                authentication {
                    mode pre-shared-secret
                    pre-shared-secret 
                }
                ike-lifetime 3600
            }
            mtu 1492
            outside-address 192.168.79.200
        }
    }
}


/* 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-unms@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.9.7+hotfix.4.5024279.171006.0255 */

EdgeRouter OpenVPN Android issue.

$
0
0

Hi guys,

 

After the last update of openvpn client for Android ( https://play.google.com/store/apps/details?id=net.openvpn.openvpn ) its not possible to connect.

 

Changes from 1.1.17 to 1.1.21:
* upgrade to mbedTLS 2.6.0
* upgrade to lz4 1.8.0
* upgrade to Android 8 SDK
* ask for user permissions at runtime
* open import file dialog on user external storage by default
* fix for crash if storage path not found
* fix for shortcut creation under Oreo
* update ovpn3 core
* added tls-crypt support
 
Apparently, the problem is related to openssl / openvpn version of server EdgeRouter ( https://forums.openvpn.net/viewtopic.php?f=33&t=25179&sid=82b487d8d067ae9784e3fdf72194cd50 ) and can be fixed updating the server version.
 
I have downgrade "OpenVPN Connect" application to 1.1.17 version and works fine.
 
Please, Can someone with more knowledge offer information about it?
 
Thank you so much!

 

More info: https://forums.openvpn.net/viewforum.php?f=33

syslogd causing high cpu utilization.

$
0
0

I have a bit of a problem.  In the last week ive noticed that my ER-X SFP started lowing down.  A few time when ive checked it i either cant get logged into the web mgmt interface or the CPU is topped out at 90%+.  So i reboot it and it is fine for a while.  The last couple days it has constantly been problematic and ive been watching it fluctuate between 30-50% CPU usage at all times.  I use this at my home for home use and a lab enviroment, when it is working normally is see less than 5% CPU usage on it.  I connected to it by SSH and ran TOP and noted that syslogd seems to be the offender.  i even elevated to root and ran "killall -HUP syslogd"  which killed the syslogd proccesses and cpu utiliazation dropped down to normal.  syslogd restarted after a couple of minutes and usage spiked back up. 

 

I am currently running v1.9.7HF3.

image.png

 

show configuration
firewall {
    all-ping enable
    broadcast-ping disable
    group {
        address-group exch {
            address 192.168.1.12
            description ""
        }
        port-group Exchange {
            description ""
            port 25
            port 587
            port 80
            port 443
        }
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    modify eth3 {
    }
    name WAN_IN {
        default-action drop
        description ""
        rule 1 {
            action accept
            description "Allow established/related"
            log disable
            protocol all
            state {
                established enable
                invalid disable
                new disable
                related enable
            }
        }
        rule 2 {
            action accept
            description RDP
            destination {
                port 3389
            }
            log disable
            protocol tcp_udp
            source {
                address <PublicIP>24
            }
            state {
                established disable
                invalid disable
                new enable
                related disable
            }
        }
        rule 3 {
            action accept
            description EXCH_ANY
            destination {
                group {
                    port-group Exchange
                }
            }
            log disable
            protocol all
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 1 {
            action accept
            description "Allow established/related"
            log disable
            protocol all
            state {
                established enable
                invalid disable
                new disable
                related enable
            }
        }
        rule 2 {
            action drop
            description "Drop invalid state"
            log disable
            protocol all
            state {
                established disable
                invalid enable
                new disable
                related disable
            }
        }
        rule 3 {
            action accept
            description Allow_MGMT
            destination {
                port 22
            }
            log disable
            protocol tcp_udp
            source {
                address <PublicIP>/24
            }
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
        rule 4 {
            action accept
            description Allow_MGMT
            destination {
                port 443
            }
            log disable
            protocol tcp_udp
            source {
                address <PublicIP>/24
            }
            state {
                established enable
                invalid disable
                new enable
                related enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth1 {
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth2 {
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth3 {
        duplex auto
        poe {
            output off
        }
        speed auto
    }
    ethernet eth4 {
        address <PublicIP>/29
        address <PublicIP>/29
        description WAN
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
        }
        poe {
            output off
        }
        speed auto
    }
    ethernet eth5 {
        duplex auto
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 192.168.1.1/24
        mtu 1500
        switch-port {
            interface eth0 {
            }
            interface eth1 {
            }
            interface eth2 {
            }
            interface eth3 {
            }
            vlan-aware disable
        }
        vif 5 {
            address 192.168.5.1/24
            description MGMT
            mtu 1500
        }
        vif 10 {
            address 192.168.10.1/24
            description home.local
            mtu 1500
        }
        vif 20 {
            address 192.168.20.1/24
            description lab.pri
            mtu 1500
        }
    }
}
port-forward {
    auto-firewall disable
    hairpin-nat enable
    lan-interface switch0
    rule 1 {
        description MC_SERVER
        forward-to {
            address 192.168.1.25
            port 25565
        }
        original-port 25565
        protocol tcp_udp
    }
    rule 2 {
        description MC_DynMap
        forward-to {
            address 192.168.1.25
            port 8123
        }
        original-port 8123
        protocol tcp_udp
    }
    rule 3 {
        description rdp
        forward-to {
            address 192.168.10.5
            port 3389
        }
        original-port 3389
        protocol tcp_udp
    }
    rule 4 {
        description MC_RDP
        forward-to {
            address 192.168.1.25
            port 3389
        }
        original-port 5600
        protocol tcp_udp
    }
    rule 5 {
        description MURMUR
        forward-to {
            address 192.168.1.26
            port 64738
        }
        original-port 64738
        protocol tcp_udp
    }
    wan-interface eth4
}
protocols {
    static {
        route 0.0.0.0/0 {
            next-hop <PublicIP> {
            }
        }
    }
}
service {
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 2 {
            description exch1-1
            destination {
                address <PublicIP>
            }
            inbound-interface eth4
            inside-address {
                address 192.168.10.17
            }
            log disable
            protocol all
            source {
            }
            type destination
        }
        rule 5001 {
            destination {
            }
            log disable
            outbound-interface eth4
            outside-address {
                address <PublicIP>
            }
            protocol all
            source {
                address 192.168.10.17
                group {
                }
            }
            type source
        }
        rule 5002 {
            description inside_Outside
            log disable
            outbound-interface eth4
            protocol all
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    unms {
        disable
    }
}
system {
    domain-name theorder.local
    host-name edge
    login {
        user admin {
            authentication {
                encrypted-password ****************
                plaintext-password ****************
            }
            level admin
        }
        user netadmin {
            authentication {
                encrypted-password ****************
                plaintext-password ****************
            }
            level admin
        }
    }
    offload {
        hwnat enable
        ipsec enable
    }
    syslog {
        global {
            facility all {
                level err
            }
        }
    }
    time-zone UTC
    traffic-analysis {
        dpi enable
        export enable
    }
}
traffic-control {
}
vpn {
}
root@edge:/home/netadmin#

RDP-8 1.9.7+HF4: PPTP not sending RADIUS requests

$
0
0

Per my post this past weekend:

https://community.ubnt.com/t5/EdgeMAX/ERP8-1-9-7-HF4-Trying-to-setup-Radius-against-2012R2-NPS/m-p/2117444#M183300

It seems my ERP-8 with 1.9.7+HF4 is not sending RADIUS requests to my configured PPTP RADIUS server.

admin@firewall:~$ show version
Version:      v1.9.7+hotfix.4
Build ID:     5024021
Build on:     10/05/17 05:33
Copyright:    2012-2017 Ubiquiti Networks, Inc.
HW model:     EdgeRouter Pro 8-Port
HW S/N:       802AA84DB46A
Uptime:       07:08:43 up 23:33,  1 user,  load average: 0.19, 0.13, 0.08

admin@firewall# show vpn pptp
 remote-access {
     authentication {
         mode radius
         radius-server 10.0.0.12 {
             key radiuspass!
         }
     }
     client-ip-pool {
         start 10.0.0.200
         stop 10.0.0.235
     }
     dns-servers {
         server-1 10.0.0.12
         server-2 10.0.0.2
     }
     mtu 1492
     outside-address xxx.xxx.250.122
 }

On attempting to connect to the above ERP-8 with a PPTP client (win 7 builtin), I get the connect messages in /var/log/messages, but I dont see any corresponding traffic in tcpdump sent to my RADIUS server (Win2012):

/var/log/messages pptp except:

Nov 1 17:00:12 firewall pptpd[26698]: MGR: Launching /usr/sbin/pptpctrl to handle client
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: local address = 10.0.0.199
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: remote address = 10.0.0.200
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: pppd options file = /etc/ppp/options.pptpd
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Client 61.xxx.xxx.xxx control connection started
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Received PPTP Control Message (type: 1)
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Made a START CTRL CONN RPLY packet
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: I wrote 156 bytes to the client.
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Sent packet to client
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Received PPTP Control Message (type: 7)
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Made a OUT CALL RPLY packet
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Starting call (launching pppd, opening GRE)
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: pty_fd = 6
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: tty_fd = 7
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: I wrote 32 bytes to the client.
Nov 1 17:00:12 firewall pptpd[26699]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Nov 1 17:00:12 firewall pptpd[26699]: CTRL (PPPD Launcher): local address = 10.0.0.199
Nov 1 17:00:12 firewall pptpd[26699]: CTRL (PPPD Launcher): remote address = 10.0.0.200
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Sent packet to client
Nov 1 17:00:12 firewall pppd[26699]: Plugin radius.so loaded.
Nov 1 17:00:12 firewall pppd[26699]: RADIUS plugin initialized.
Nov 1 17:00:12 firewall pppd[26699]: Plugin radattr.so loaded.
Nov 1 17:00:12 firewall pppd[26699]: RADATTR plugin initialized.
Nov 1 17:00:12 firewall pppd[26699]: pppd 2.4.4 started by root, uid 0
Nov 1 17:00:12 firewall pppd[26699]: using channel 20
Nov 1 17:00:12 firewall netplugd[2747]: ppp0: ignoring event
Nov 1 17:00:12 firewall pppd[26699]: Using interface ppp0
Nov 1 17:00:12 firewall pppd[26699]: Connect: ppp0 <--> /dev/pts/3
Nov 1 17:00:12 firewall pppd[26699]: sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0x0> <auth chap MS-v2> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Received PPTP Control Message (type: 15)
Nov 1 17:00:12 firewall pptpd[26698]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Nov 1 17:00:12 firewall pptpd[26698]: GRE: accepting packet #0
Nov 1 17:00:12 firewall pppd[26699]: rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0x75b520ec> <pcomp> <accomp> <callback CBCP>]
Nov 1 17:00:12 firewall pppd[26699]: lcp_reqci: rcvd unknown option 13
Nov 1 17:00:12 firewall pppd[26699]: lcp_reqci: returning CONFREJ.
Nov 1 17:00:12 firewall pppd[26699]: sent [LCP ConfRej id=0x0 <callback CBCP>]
Nov 1 17:00:12 firewall pptpd[26698]: GRE: accepting packet #1
Nov 1 17:00:12 firewall pppd[26699]: rcvd [LCP ConfReq id=0x1 <mru 1400> <magic 0x75b520ec> <pcomp> <accomp>]
Nov 1 17:00:12 firewall pppd[26699]: lcp_reqci: returning CONFACK.
Nov 1 17:00:12 firewall pppd[26699]: sent [LCP ConfAck id=0x1 <mru 1400> <magic 0x75b520ec> <pcomp> <accomp>]
Nov 1 17:00:13 firewall sudo:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/ubnt-intf-ipv6.pl ppp0
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0x0> <auth chap MS-v2> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #2
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x1 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x2 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #3
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x2 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x3 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #4
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x3 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x4 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #5
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x4 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x5 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #6
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x5 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x6 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #7
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x6 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x7 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #8
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x7 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x8 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #9
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x8 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0x9 <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #10
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0x9 <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0xa <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #11
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP ConfNak id=0xa <auth eap>]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP ConfReq id=0xb <mru 1492> <asyncmap 0x0> <magic 0xbb058d28> <pcomp> <accomp>]
Nov 1 17:00:15 firewall pptpd[26698]: GRE: accepting packet #12
Nov 1 17:00:15 firewall pppd[26699]: rcvd [LCP TermReq id=0x2 "u\37777777665 \37777777754\000<\37777777715t\000\000\002\37777777734"]
Nov 1 17:00:15 firewall pppd[26699]: sent [LCP TermAck id=0x2]
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Received PPTP Control Message (type: 12)
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Made a CALL DISCONNECT RPLY packet
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Received CALL CLR request (closing call)
Nov 1 17:00:15 firewall pppd[26699]: Modem hangup
Nov 1 17:00:15 firewall pppd[26699]: Connection terminated: no multilink.
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Reaping child PPP[26699]
Nov 1 17:00:15 firewall netplugd[2747]: ppp0: ignoring event
Nov 1 17:00:15 firewall pppd[26699]: RADATTR plugin removed file /var/run/radattr.ppp0.
Nov 1 17:00:15 firewall pppd[26699]: Exit.
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Client 61.xxx.xxx.xxx control connection finished
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Exiting with active call
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Asked to free call when no call open, not handled well
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Made a CALL DISCONNECT RPLY packet
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Couldn't write packet to client.
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Made a STOP CTRL REQ packet
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Couldn't write packet to client.
Nov 1 17:00:15 firewall pptpd[26698]: CTRL: Exiting now
Nov 1 17:00:15 firewall pptpd[25545]: MGR: Reaped child 26698

tcpdump running at same time as above /var/log/messages pptp excerpt:

root@firewall# tcpdump -i any udp port 1812
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes




^C
0 packets captured
4 packets received by filter
0 packets dropped by kernel

MS Windows 2012 'Network Policy Server' configured as a RADIUS service shows NO connection related messages from the firewall at the same time as above client connect and tcpdump. I have some UniFi Wireless AP's authenticating against the same Windows RADIUS server with zero issues.

I'm stumped. Any ideas?

 

 

DPI Apps suddenly not showing Apps

$
0
0

Starting Nov 1st I've stopped seeing traffic for most of the Traffic Analysis apps such as Netflix, Youtube, Amazon, Gmail etc. Most traffic seems to be under "Web - Other" with a few protocols such as SIP, QUIC, NTP still showing traffic.

 

I'm running EdgeRouterX 1.9.7+3 Everything was fine on Oct 31st and as far as I know, I have changed nothing. Any suggestions would be much appreciated.

Viewing all 20028 articles
Browse latest View live