DNS Resolving for PPP Clients

Sometimes you will need to connect to a router that either has a dynamic IP or a domain name instead of directly to the IP address.  This is easily achieved using RouterOS  with a simple script.  Using the script below you will need to change PPP-INTERFACE to the name...

Block Facebook

Many businesses want to block facebook on their corporate networks.  Here is a useful site to lookup blocks of IPs. http://www.robtex.com/dns/www.facebook.com.html#records http://bgp.he.net/AS32934#_prefixes Using the IPs from above we can create firewall rules to...

Open NAT on Xbox Live

Here are the rules I use to open my NAT on Xbox Live.  Xbox.com says to “open” ports 88udp, 3074udp/tcp, 53udp/tcp, and 80tcp.  Assuming you can browse the internet you don’t need to NAT 80 and 53 to your Xbox.  These are just HTTP and DNS traffic...

PtP Bridge With 802.11N and NV2

Here is the configuration for a Point-to-Point link that can be used with a number of MikroTik devices.  With this example I used two StationTik 5G’s but could be used with SXT’s or any other Point-to-Point devices.  You might need to change your frequency...

NEC DT700 Phone Setup

When you first take the phone out of the box you will have to put some settings in it so it can call back to the server.  To do that it is not exactly straight forward and I could not seem to find it anywhere in the documentation.  After the phone starts to boot dial...

Fix Slow SSH Login (Ubuntu)

sudo echo “UseDNS no” >> /etc/ssh/sshd_config This prevents the server from doing a reverse DNS lookup on the IP address, which apparently takes forever sometimes.  

Disable Access During Certain Hours

Recently I have needed to restrict access to the internet during certain hours.  This is very easy to achieve with MikroTIk using a few mangle and filter rules.  I currently have this configuration on a RB751 so I am using a bridge for the LAN.  I have ports 2-5...

Find Public IP via Command Line

Sometimes when setting up NAT it is useful to see if you have done your configuration correctly.  Using this command you can see what your public IP address is from a command line.   wget -qO – http://www.whatismyip.org