AdTrap: AdTrap Anywhere on OS X

Requirements For This Walkthrough
Materials
- Mac running OS X
- AdTrap with AdTrap Anywhere enabled
Downloads
- None.
Knowledge, Skills, and Abilities
- Knowledge of basic computer terminology
- Familiarity with core networking concepts/terms
- Ability to adjust network settings in OS X
Resources
AdTrap Anywhere
Enable AdTrap Anywhere
Assuming your AdTrap is already up and running, the Anywhere feature needs to be enabled via the Web interface. You need to be on the same network that your AdTrap is on to adjust these settings.
1. Navigate to adtrap.local:10001 in a Web browser
2. Click Settings > AdTrap Anywhere

3. Choose Enabled from the pull-down menu
4. Enter a username and secure password
5. Click Save
6. Take note of the unique domain name that is generated

Create Two New Network Locations as Duplicates of “Automatic”
OS X can have multiple network “locations,” which allow for different settings. This is useful for the AdTrap so one location can be set for your home network, while the other can be set for when you are away.
Create A Local and Global AdTrap Network Location
- Open System Preferences > Network
- Choose Edit Locations from the pulldown menu labeled Locations
- Highlight Automatic
- Choose Duplicate Service from the pulldown menu
- Create two new locations: AdTrap Local and AdTrap Global

Set the Proxy Settings for AdTrap Global Locations
1. Select AdTrap Global as the current location within Network Preferences
2. Click Advanced
3. Click the Proxy tab
4. Fill in the information as pictured below from the AdTrap Anywhere Web interface

5. Click OK
6. Click Apply
Forward Port 5555 to the AdTrap
This step will vary based on your router, but you can get the basic idea from this post.
Connect to Another Network to Test the Global connection
1. Select the AdTrap Global network location from the Apple menu

2. Navigate to a Website
3. Enter the username/password entered when the AdTrap Anywhere feature was set up when the prompt appears

This seems to work most of the time, but every once in a while, the prompt re-appears. To avoid this from happening, you might need to adjust some settings in the Keychain entry.
Adjust Keychain to Avoid Typing in Password Every Time
1. Open Keychain Access

2. Highlight login in the upper-sidebar
3. Highlight Passwords in the lower-sidebar
4. Double-click the entry for adtrapanywhere.com on the right side of the window
5. Click the Access Control tab
6. Select the radio button to Allow all applications access to this item
7. Alternatively, click the plus sign to add specific applications

Testing AdTrap Anywhere for Functionality
Use Traceroute
- Select a network location that is not AdTrap Global, while you are on a network that is not your own (a network away from home)
- Open Terminal
- Type ping www.google.com (or any Website) and let the command complete
- Select the AdTrap Global network location now
- Type ping www.google.com again
- Compare the output of the two commands
- They should be different and you will probably see entries for your ISP or places near your home
- If you got this far int he walkthrough, it is probably working already, but it is still nice to see it in effect