Dual / Triple WAN HowTo | DHCP scripts on Page 5!!!!

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 66, 67, 68  Next
Author Message
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Tue Apr 22, 2008 12:55    Post subject: Reply with quote
Ahh yes good call.


Edit: Fixed!

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
Sponsor
azuretech
DD-WRT User


Joined: 29 Oct 2007
Posts: 103

PostPosted: Tue Apr 22, 2008 14:12    Post subject: Seems this may be what I'm looking for... Reply with quote
My ISP allows me to pull up to 3 static IP addresses of our cable modem.... I would like to pull one of these addresses, and route all trafic out to my VPN

Is this possible to do?

ie primary static IP xxx.xxx.xxx.103 all normal traffic on this like a standard setup
2nd static ip xxx.xxx.xxx.104 ll traffic on this IP routed to OpenVPN 192.168.2.1 adapter
MrTRiX
DD-WRT Novice


Joined: 21 Apr 2008
Posts: 6

PostPosted: Tue Apr 22, 2008 14:16    Post subject: Reply with quote
that firewall.firewall script you posted on page 12 for download is different from the one on page 5, which is the correct and latest?
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Tue Apr 22, 2008 15:16    Post subject: Reply with quote
Page 5 is for V23SP2/3, or V24 RC3 and below.


Page 12 is for V24 RC4 and above (at least, i think.....Im using page 12 for RC7 9414)

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router


Last edited by jbarbieri on Tue Apr 22, 2008 15:23; edited 1 time in total
MrTRiX
DD-WRT Novice


Joined: 21 Apr 2008
Posts: 6

PostPosted: Tue Apr 22, 2008 15:22    Post subject: Reply with quote
If I have v24 RC6 should I use Page 12's firewall.firewall and are any of the other steps or scripts different for my version? Such as "udhcpc-vlan2.script" or "routes.firewall" or the Telnet stuff at the start.
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Tue Apr 22, 2008 15:23    Post subject: Reply with quote
RC6 should work with page 12s firewall.

the only difference between the different firmware versions is the firewall.firewall

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
stalonge
DD-WRT Guru


Joined: 21 Jul 2006
Posts: 1898
Location: Fortaleza Ce Brazil

PostPosted: Tue Apr 22, 2008 17:48    Post subject: Reply with quote
RC 6 have some known issue .. flash RC7 9414 it's much better
_________________
DDwrt ...it rocks ....

1 R7800 54420 AP Wireguard webserver JFFS SAMBA FTP usb HD Mesh
1 R7800 54420 Cli Mesh
1 WZR1750 54389 AP Webserver Samba Wireguard
1 TP link Archer C7v5 54420 Cli Mesh
1 DD x86_64 48296 Gateway Samba Ftp Webserver
MrTRiX
DD-WRT Novice


Joined: 21 Apr 2008
Posts: 6

PostPosted: Tue Apr 22, 2008 18:15    Post subject: Reply with quote
I just recently read that the WRT150N does not support vlan. Is this wrong? Can I do this on a WRT150N? I do see a VLAN tab and the post mentioning it not working is old. Has a new firmware fixed this?
trickstar
DD-WRT Novice


Joined: 18 Mar 2007
Posts: 24

PostPosted: Tue Apr 22, 2008 19:13    Post subject: Reply with quote
when adding the 2nd modem (on vlan2) what mac address does it use? because when adding the first modem to the wan port you have to clone your nic's mac address to the router.

how can i check the mac interfaces assigned to the ports?

hope you understand what i mean.

regards
star
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Tue Apr 22, 2008 19:15    Post subject: Reply with quote
It creates a new mac address when you create a new vlan.

After you enable vlan in the webgui and through telnet/ssh, reboot, then do:

ifconfig vlan2


and it will show you the mac address:

Code:

root@xwing:/jffs/scripts# ifconfig vlan2
vlan2     Link encap:Ethernet  HWaddr 00:13:10:78:8D:86
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1180489 errors:0 dropped:0 overruns:0 frame:0
          TX packets:418773 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1042018323 (993.7 MiB)  TX bytes:38237368 (36.4 MiB)

root@xwing:/jffs/scripts#

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
stalonge
DD-WRT Guru


Joined: 21 Jul 2006
Posts: 1898
Location: Fortaleza Ce Brazil

PostPosted: Tue Apr 22, 2008 20:35    Post subject: Reply with quote
JB

Post with new changes all the scripts that i will test tonight (again )

Very Happy

_________________
DDwrt ...it rocks ....

1 R7800 54420 AP Wireguard webserver JFFS SAMBA FTP usb HD Mesh
1 R7800 54420 Cli Mesh
1 WZR1750 54389 AP Webserver Samba Wireguard
1 TP link Archer C7v5 54420 Cli Mesh
1 DD x86_64 48296 Gateway Samba Ftp Webserver
cchance
DD-WRT Novice


Joined: 20 Mar 2007
Posts: 4

PostPosted: Tue Apr 22, 2008 21:12    Post subject: ? Reply with quote
so... im running a ddwrt latest beta on whrg54s ...

can someone post the proper codes to do this ... as they seem to have changed a few times over the corse of these posts...

im gonna use 2 routers to manage the connections themselves so that the main loadbalancer will have static ips for both interfaces...

has anyone wrote a failover script yet?
MrTRiX
DD-WRT Novice


Joined: 21 Apr 2008
Posts: 6

PostPosted: Tue Apr 22, 2008 22:09    Post subject: Reply with quote
It would be easier if you just modified your first post with the new code in there so we don't need to go around from page to page.
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Wed Apr 23, 2008 12:24    Post subject: Reply with quote
Ok, I will change the first post, but also put them here:

The last attachment will be added in another post (3 attachment limit).



firewall-v24.firewall.txt
 Description:
Rename to firewall.firewall and upload, or open in wordpad and copy/paste.

For V24RC4 and above!!

Download
 Filename:  firewall-v24.firewall.txt
 Filesize:  5.31 KB
 Downloaded:  2042 Time(s)


firewall.firewall.txt
 Description:
Use for v23 or v24 BELOW RC4 ONLY! (Remove the .txt and upload or open in wordpad and copy/paste).

Download
 Filename:  firewall.firewall.txt
 Filesize:  4.77 KB
 Downloaded:  1552 Time(s)


routes.firewall.txt
 Description:
Remove the .txt and upload, or open in wordpad and copy/paste.

Download
 Filename:  routes.firewall.txt
 Filesize:  849 Bytes
 Downloaded:  1761 Time(s)


_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router


Last edited by jbarbieri on Wed Apr 23, 2008 12:45; edited 1 time in total
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Wed Apr 23, 2008 12:28    Post subject: Reply with quote
Last piece:



Under admin>commands, put in the following:

Code:

udhcpc -s /jffs/scripts/udhcpc-wan2.script  -i vlan2
/jffs/scripts/routes.firewall


And click save startup. Replace vlan2 with your second WAN interface.

Put the following:

Code:

/jffs/scripts/firewall.firewall


and click save firewall.



udhcpc-wan2.script.txt
 Description:
Remove the .txt, and upload, or open in wordpad and copy/paste.

Download
 Filename:  udhcpc-wan2.script.txt
 Filesize:  1.55 KB
 Downloaded:  1579 Time(s)


_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 66, 67, 68  Next Display posts from previous:    Page 13 of 68
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum