Skip to content

Instantly share code, notes, and snippets.

@justingarrick
Last active October 4, 2015 05:57
Show Gist options
  • Save justingarrick/2589004 to your computer and use it in GitHub Desktop.
Save justingarrick/2589004 to your computer and use it in GitHub Desktop.
PPPoE DSL Modem Passthrough with Tomato
# Assuming modem is a Motorola 2210-02-1006 running in bridge mode w/ a LAN IP of 192.168.1.254
# Router is WRT54G running Tomato w/ LAN IP of 192.168.2.1 and is handling PPPoE
# In order to access modem's web UI via LAN:
# 1) Add the following script under Administration > Scripts > Init:
sleep 5
ip addr add 192.168.1.2/24 dev vlan1 brd +
iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
# 2) Add the following script under Administration > Scripts > Firewall:
iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE
# Change CIDR ranges to suit your configuration if necessary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment