Last active
October 4, 2015 05:57
-
-
Save justingarrick/2589004 to your computer and use it in GitHub Desktop.
PPPoE DSL Modem Passthrough with Tomato
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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