I'll give it a go when I get a chance.Better fire up the pctool then
Andy.
The half-bridge mode can be started from a Telnet/ssh session, or probably the Web Gui run_command, but during the reconfiguration the connection gets broken. I developed the script using serial console to see the messages!hi, i just started to use yr half bridge script, the manual 1, located @ viewtopic.php?f=3&t=1189 , it work great, i love it. however, i am on a 1ip connection, sometimes, i use the connection myself, i use the script, some other times, when i have to share the connection via router wifi, i need to reconnect my connection, becoz i dont know how to revert everything back to normal with command manually, can u pls teach me how to do it? thx in adv.
Code: Select all
pppHB.sh init -nofw -v -s 60
Code: Select all
pppHB.sh exit
If you have a single static PPPoA address, you should be able to run with "-nodhcp", manually giving the static WAN IP to your router, leaving local lan dhcp for lan clients untouched. This mode was simulated a log time ago - but not used recently. Static IPs tend to come in small ranges and users can use no-nat mode without resorting to half-bridge. There was some discussion about using half-bridge with a range of IP addresses, and yes it is theoretically possible for the modem not to have a real WAN IP address itself, and a form of this script could help.how to revert back and multiple ip setup? about the multiple ip setup, does it work for static ip, pppoa, 1 ip for router, 1 ip for client connection.
Code: Select all
pppHB.sh init -nofw -v -s 60
I'm using IPFire which I believe is a Smoothwall fork, will look into the earlier comments and see if it helps. Cheersmstombs wrote:What router? - see comments re old versions of Tomato/dd-wrt etc needing extra firewall commands to accept the Gateway not in network defined by IP address and netmask.
Code: Select all
pppHB.sh init -nofw -v -s 60
Code: Select all
root: pppHB.sh: No Firewall
root: pppHB.sh: VerBose logging enabled
root: pppHB.sh: Start Delay: 60
command: IT
root: pppHB.sh: Pausing for 60 seconds as requested
root: pppHB.sh: Configuring, please wait...
root: pppHB.sh: /sbin/ifconfig ppp0 0.0.0.0
root: pppHB.sh: udhcpd started with conf /var/tmp/pppHBdhcpd.conf
root: pppHB.sh: /sbin/route add -host 89.168.172.43 dev br0
root: pppHB.sh: /sbin/route add -host 89.168.160.1 dev ppp0
root: pppHB.sh: /sbin/route add default gw 89.168.160.1
User command: pppHB.sh init -nofw -v -s 60
Code: Select all
GW=$(nvram get wan_gateway)
IF=$(nvram get wan_iface)
route add -host $GW dev $IF
route add default gw $GW
Er, no, I'll sort that.mstombs wrote:Did you set the short lease time in the modem, before issuing that pppHB.sh command? The one in dd-wrt applies to its lan.
Lol, the DD-WRT website confuses the hell out of me (and I'm reasonably computer literate) with endless ramblings and constant switching between articles. I'm writing a guide (for myself) on doing this if I ever need it again, I'll put it online when I get everything working as so many little steps are spread over so many websites, forums and wikis.mstombs wrote:Do also check with the "peacock thread" http://downloads.dd-wrt.com/phpBB2/view ... hp?t=51486 and its comments about the database "recommended" firmware