Mon Oct 12, 2015 2:49 am
Thanks for the replies. I am pinging from the Mikrotik itself. There are no mangle rules or layer 7 protocol changes made to the default firewall. The modem is a CenturyLink C1000A that is running in "Transparent Bridge" mode. I am getting ~400ms ping times into the gateway IP address provided by CenturyLink. Roughly ~400ms ping times into places like 8.8.8.8 or 205.171.3.65 which is a CenturyLink DNS server. Configuration is below:
#oct/11/2015 17:26:16 by RouterOS 6.32.2
# software id = 7NM0-48YS
#
/接口bridge
add admin-mac=E4:8D:8C:**:**:** auto-mac=no name=bridge-local
/接口ethernet
set [ find default-name=ether1 ] auto-negotiation=no name=ether1-gateway
set [ find default-name=ether2 ] mtu=1492
set [ find default-name=ether6 ] name=ether6-master-local
set [ find default-name=ether7 ] master-port=ether6-master-local name=ether7-slave-local
set [ find default-name=ether8 ] master-port=ether6-master-local name=ether8-slave-local
set [ find default-name=ether9 ] master-port=ether6-master-local name=ether9-slave-local
set [ find default-name=ether10 ] master-port=ether6-master-local name=ether10-slave-local
/接口pppoe-client
add add-default-route=yes dial-on-demand=yes disabled=no interface=ether1-gateway max-mru=1492 max-mtu=1492 mrru=1492 name=\
"CenturyLink ISP" password=****** use-peer-dns=yes user=********@qwest.net
/ip neighbor discovery
set ether1-gateway discover=no
/接口wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=aes-128-cbc
/ip pool
add name=dhcp ranges=192.168.49.100-192.168.49.199
/ip dhcp-server
add add-arp=yes address-pool=dhcp disabled=no interface=bridge-local name="******"
/接口bridge port
add bridge=bridge-local interface=ether2
add bridge=bridge-local interface=ether3
add bridge=bridge-local interface=ether4
add bridge=bridge-local interface=ether5
add bridge=bridge-local interface=ether6-master-local
add bridge=bridge-local interface=sfp1
/ip address
add address=192.168.49.254/24 comment="default configuration" interface=ether2 network=192.168.49.0
/ip dhcp-server network
add address=192.168.49.0/24 gateway=192.168.49.254 netmask=24
/ip dns
set allow-remote-requests=yes servers=205.171.3.65,205.171.2.65,8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.49.254 name=router
/ip firewall filter
add chain=input comment="Remote Winbox" dst-port=8291 protocol=tcp
add chain=input comment=Ping protocol=icmp
add chain=input protocol=ipsec-esp
add chain=input port=500 protocol=udp
add chain=input protocol=ipsec-ah
add chain=input comment=Related connection-state=related
add chain=input comment=Established connection-state=established
add action=drop chain=input comment="Drop Unsolicited" in-interface=ether1-gateway
add chain=forward comment=Established connection-state=established
add chain=forward comment=Related connection-state=related
add action=drop chain=forward comment=Invalid connection-state=invalid
/ip firewall nat
add chain=srcnat dst-address=192.168.0.0/24 src-address=192.168.49.0/24
add action=masquerade chain=srcnat comment="default configuration" out-interface="CenturyLink ISP"
/ip ipsec peer
add address=96.93.***.***/32 secret=*********
/ip ipsec policy
add dst-address=192.168.0.0/24 sa-dst-address=96.93.***.*** sa-src-address=65.102.**.*** src-address=192.168.49.0/24 tunnel=yes
/ip service
set telnet disabled=yes
set ssh disabled=yes
/system clock
set time-zone-autodetect=no time-zone-name=America/Denver
/system identity
set name=*********-RTR1
/system scheduler
add interval=30m name="Update DNS Table" on-event="DNS Update" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=\
oct/06/2015 start-time=02:10:49
/system script
add name="DNS Update" owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source="# Creates static DNS entres for DHCP cli\
ents in the named DHCP server.\r\
\n# Hostnames passed to DHCP are appended with the zone.\r\
\n \r\
\n# Set the first two variables according to your installation.\r\
\n:local dhcpserver \"************\"\r\
\n:local zone \"workgroup\"\r\
\n \r\
\n# Set the TTL to the scheduler frequency for this script.\r\
\n:local ttl \"00:05:00\"\r\
\n \r\
\n# Clear old static DNS entries matching the zone and TTL.\r\
\n/ip dns static\r\
\n:foreach dnsrecord in=[find where name ~ (\".*\\\\.\".\$zone) ] do={\r\
\n\t:local fqdn [ get \$dnsrecord name ]\r\
\n\t:local hostname [ :pick \$fqdn 0 ( [ :len \$fqdn ] - ( [ :len \$zone ] + 1 ) ) ]\r\
\n\t:local recordttl [get \$dnsrecord ttl]\r\
\n\t:if ( \$recordttl != \$ttl ) do={\r\
\n\t\t:log debug (\"Ignoring DNS record \$fqdn with TTL \$recordttl\")\r\
\n\t} else={\r\
\n\t} else={\r\
\n\t\t/ip dhcp-server lease\r\
\n\t\t:local dhcplease [ find where host-name=\$hostname and server=\"\$dhcpserver\"]\r\
\n\t\t:if ( [ :len \$dhcplease ] > 0) do={\r\
\n\t\t\t:log debug (\"DHCP lease exists for \$hostname in \$dhcpserver, keeping DNS record \$fqdn\")\r\
\n\t\t} else={\r\
\n\t\t\t:log info (\"DHCP lease expired for \$hostname, deleting DNS record \$fqdn\")\r\
\n\t\t\t/ip dns static remove \$dnsrecord\r\
\n\t\t}\r\
\n\t}\r\
\n}\r\
\n \r\
\n# Create or update static DNS entries from DHCP server leases.\r\
\n/ip dhcp-server lease\r\
\n:foreach dhcplease in=[find where server ~ (\"\$dhcpserver\")] do={\r\
\n\t:local hostname [ get \$dhcplease host-name ]\r\
\n\t:if ( [ :len \$hostname ] > 0) do={\r\
\n\t\t:local dhcpip [ get \$dhcplease address ]\r\
\n\t\t:local fqdn ( \$hostname . \".\" . \$zone )\r\
\n\t\t/ip dns static\r\
\n\t\t:local dnsrecord [ find where name=\$fqdn ]\r\
\n\t\t:if ( [ :len \$dnsrecord ] > 0 ) do={\r\
\n\t\t\t:local dnsip [ get \$dnsrecord address ]\r\
\n\t\t\t:if ( \$dnsip = \$dhcpip ) do={\r\
\n\t\t\t\t:log debug (\"DNS record for \$fqdn to \$dhcpip is up to date\")\r\
\n\t\t\t} else={\r\
\n\t\t\t\t:log info (\"Updating DNS record for \$fqdn to \$dhcpip\")\r\
\n\t\t\t\t/ip dns static remove \$dnsrecord\r\
\n\t\t\t\t/ip dns static add name=\$fqdn address=\$dhcpip ttl=\$ttl\r\
\n\t\t\t}\r\
\n\t\t} else={\r\
\n\t\t\t:log info (\"Creating DNS record for \$fqdn to \$dhcpip\")\r\
\n\t\t\t/ip dns static add name=\$fqdn address=\$dhcpip ttl=\$ttl\r\
\n\t\t}\r\
\n\t}\r\
\n}"
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add interface=sfp1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=ether6-master-local
add interface=ether7-slave-local
add interface=ether8-slave-local
add interface=ether9-slave-local
add interface=ether10-slave-local
add interface=sfp1
add interface=bridge-local