Relative Content

Tag Archive for Router

Send Mikrotik config via email

This script will export the config from your mikrotik router and email it to your email address. The scheduled time between exports and email sending can be decided by you. The exported file will take the name of your system identity ending in the extension .rsc /export file=”$[/system identity get name]” /tool e-mail send to=”” […]

Exporting Mikrotik Firewall Rules

In a terminal windows or via ssh, enter the below line ip firewall export file=firewallrules then find a file called “firewallrules.rsc” in your files folder.

Mikrotik VPN place rule before dummy rule

/ip firewall filter add chain=forward dst-address=”remoterange” src-address=”localrange” place-before=0 /ip firewall filter add chain=forward dst-address=”localrange” src-address=”remoterange” place-before=0

Routerboard SNTP Client

How to set the NTP client on a Mikrotik router using the Terminal /system ntp client set enabled=yes primary-ntp=###.###.###.### secondary-ntp=###.###.###.### Change the ### for IP address’s Once done use the below to check if the settings has been applied /system ntp client print Below are two IP addresess for NTP servers that I use, they […]

Port Forwarding on a Mikrotik Routerboard

The below example shows a simple port forward that is forwarding TCP, Port 32400 (Plex) to the internal address (Plex Media Server) This string is entered into the console.   /ip firewall nat add action=dst-nat chain=dstnat disabled=no dst-port=32400 in-interface=ether1-gateway protocol=tcp to-addresses= to-ports=32400

Zyxel P660 – Removing secured web IP

If you have locked down the web management port to 1 IP address and you need to access it from a different IP you can telnet to the router and using the below commands remove the secured Ip address allowing access from the web gui from any IP. sys server load sys server secureip web […]

Draytek 2860 Port 443 / SSL not working port forward

There seems to be a bug in the Draytek 2860 router, even though I had changed the management ports from the default 80 and 443 to 8080 and 8080. I was still unable to port forward any 443 traffic and would end up getting an 404 error page from the Draytek 2860. The next thing […]

Delete a nat rule in iptables

First of all I list all the rules including line numbers like this; iptables -L -t nat –line-numbers I then look at the output that will be similar to the below       In this example lets say I want to delete rule number 2 in the PREROUTING chain, I would enter the following; […]

How to change the RDP port on XP

Sometimes you may want to access more than one PC or Server via RDP through your firewall. This can be a problem if you only have one external IP address. One thing you can do to get round this is to change the listening port on the target PC. This can be done by changing […]