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 ... 55, 56, 57 ... 66, 67, 68  Next
Author Message
activedir
DD-WRT Novice


Joined: 26 Feb 2009
Posts: 3
Location: Canada

PostPosted: Mon Mar 02, 2009 14:58    Post subject: DUAL WAN + scenario Reply with quote
Can anyone help me with the DUAL Wan setup and the correct scripts to obtain the following scenario?

This does not require the bonding of the two ISP to maximize the bandwidth.



VPNdiagram.JPG
 Description:
 Filesize:  57.27 KB
 Viewed:  17807 Time(s)

VPNdiagram.JPG


Sponsor
zipsniperwizard
DD-WRT Novice


Joined: 03 Mar 2009
Posts: 1

PostPosted: Tue Mar 03, 2009 19:21    Post subject: Reply with quote
Hi:) I still can't get my dual-wan with DHCP working on Eko 11650. I've assigned 1 lan port to Wan in web-interface and tried to use some scripts posted here, but still, interface state doesn't change.
Really, i didn't do nvram changes (like vlan2ports="1 5"), but i don't think it's needed. Pls corrent me if i'm wrong, and pls give me a hand:)

Now i'm using
udhcpc -i vlan2 -s /jffs/scripts/udhcpc.script,
where script file is taken from
http://www.jbarbieri.net/dd-wrt/scripts/udhcpc-wan2.script
but nothing happens Smile pls, tell me where my mistake is Smile
amhirsch
DD-WRT Novice


Joined: 04 Mar 2009
Posts: 4

PostPosted: Wed Mar 04, 2009 15:38    Post subject: Select duaWAN interface for selected LAN addresses Reply with quote
All,

I have parsed through the 65 pages on the Dual/Triple WAN configuration, and maybe I just missed it, but am looking for a way to force predetermined IP's out one link or another.

I have used the port based method as an example:

## Allow AIM to always go out vlan1 (causes connection/login issues).
iptables -t nat -I POSTROUTING -p tcp -m multiport --destination-ports 5190 -j SPOOF_ETH1
iptables -t mangle -I PREROUTING -p tcp -m multiport --destination-ports 5190 -j ETH1
iptables -t mangle -I OUTPUT -p tcp -m multiport --destination-ports 5190 -j ETH1

For a rule, but cannot verify if this:

## Force specific source address out vlan1
iptables -t nat -I POSTROUTING -s 172.31.254.119 -j SPOOF_ETH1
iptables -t mangle -I PREROUTING -s 172.31.254.119 -j ETH1
iptables -t mangle -I OUTPUT -s 172.31.254.119 -j ETH1

Will work properly. Can anyone verify for me what would need to be done in order to accomplish this?

I have everything else functioning like a champ, but have a device that I need to force out one connection and not load-balance.

TIA!
amhirsch
DD-WRT Novice


Joined: 04 Mar 2009
Posts: 4

PostPosted: Wed Mar 04, 2009 17:06    Post subject: Select duaWAN interface for selected LAN addresses Reply with quote
I have checked /proc/net/ip_conntrack and see that the ipaddress I want to force out through on WAN interface is utilizing both WAN interfaces, so the iptables rule I utilized did not work.

Any ideas/suggestions are welcome!

TIA
amhirsch
DD-WRT Novice


Joined: 04 Mar 2009
Posts: 4

PostPosted: Wed Mar 04, 2009 17:21    Post subject: Select duaWAN interface for selected LAN addresses Reply with quote
I have identified the ports required for the device I wish to route out a specific WAN interface. The ports are 500, 4500, 52428. I have made the following entry into the firewall config based off of the port designation:

## Allow AIRAVE to always go out vlan1 (causes connection/login issues).
iptables -t nat -I POSTROUTING -p tcp -m multiport --destination-ports 500,4500,52428 -j SPOOF_ETH1
iptables -t mangle -I PREROUTING -p tcp -m multiport --destination-ports 500,4500,52428 -j ETH1
iptables -t mangle -I OUTPUT -p tcp -m multiport --destination-ports 500,4500,52428 -j ETH1

However, this is still not functioning as expected. See the iptables relevant entries below:

root@officeRouter:~# iptables -t nat -nvL | grep 500
0 0 SPOOF_ETH1 tcp -- * * 0.0.0.0/0 0.0.0.0/0
multiport dports 500,4500,52428
root@officeRouter:~# iptables -t mangle -nvL | grep 500
0 0 ETH1 tcp -- * * 0.0.0.0/0 0.0.0.0/0
multiport dports 500,4500,52428
0 0 ETH1 tcp -- * * 0.0.0.0/0 0.0.0.0/0
multiport dports 500,4500,52428

When I go look at /proc/net/ip_conntrack is see connections utilizing these ports going out both WAN interfaces! See below:

root@officeRouter:~# cat /proc/net/ip_conntrack | grep 172.31.254.119
udp 17 22 src=172.31.254.119 dst=68.28.181.121 sport=4500 dport=4500 [UNREP
LIED] src=68.28.181.121 dst=192.168.88.100 sport=4500 dport=4500 use=1 rate=14 m
ark=512
udp 17 116 src=172.31.254.119 dst=68.28.181.121 sport=500 dport=500 src=68.
28.181.121 dst=172.31.253.141 sport=500 dport=500 [ASSURED] use=1 rate=126 mark=
0

Any ideas/suggestions?

TAIA!
amhirsch
DD-WRT Novice


Joined: 04 Mar 2009
Posts: 4

PostPosted: Wed Mar 04, 2009 17:52    Post subject: Select duaWAN interface for selected LAN addresses Reply with quote
Got it! I'm a dumbass and didn't pay attention to the protocol type! Sad i.e. tcp vs. udp!
fibbert
DD-WRT Novice


Joined: 04 Feb 2009
Posts: 2

PostPosted: Mon Mar 09, 2009 16:27    Post subject: WRT54G2 v 1 Reply with quote
Has anyone managed to get DualWan working on a WRT54G2?

Thanks
benja1475
DD-WRT Novice


Joined: 14 Nov 2008
Posts: 1

PostPosted: Tue Mar 10, 2009 11:53    Post subject: Is this Possible? Reply with quote
I'm new in this field but I'm willing to learn... I got WRT54G v4 and I already updated the firmware to DD-WRT v24 sp2. I got 2 ADSL connection both dynamic IP in separate ISP each ADSL modem is a router, I want to setup my WRT54G Router Fault Tolerance/Load Balance router both LAN and WLAN. Is this possible? on WRT54G v4, how and where do I start. please help...


mysetup.jpg
 Description:
 Filesize:  11.55 KB
 Viewed:  17459 Time(s)

mysetup.jpg


JackHambabo
DD-WRT User


Joined: 30 Oct 2006
Posts: 68

PostPosted: Tue Mar 10, 2009 22:51    Post subject: Reply with quote
Hi, I hope, I'm not too off-topic here.

I've been playing around with dd-wrt for quite some time now, and used it to connect between 6 to 20 people to one DSL connection.

Now, however, my student dorm wants to take over the role of internet distributor. However, I guess, we are not willing to pay 1600€ for a 34MBit/s full-duplex dedicated line for 80 students. Right now we are using 11 DSL 16000kbit/s connections to connect small groups to the internet.

The only chance I see to make any chance worthwhile would be the following:

We get establish one network for all 80 users. And we connect 10 WAN connections to it.
As this is a thread on Dual/Triple WAN solutions I hoped that you'd have the knowledge whether this is at all possible?
At best the QoS-system would split traffic by person _and_ application and route it through the DSL-connection with the most available bandwidth. Surely, it'll be hard for a system to figure out which http requests by the same user may be routed through different WAN connections (=different IP-addresses) and which need to come from the same address.

I can however not build this system myself. My question is:
Are there companies that supply and maintain such a multi-WAN-network?

If there are, than I'll check in my vicinity (Bonn, Germany), whether I'll find a company offering such a service.

Many thanks,
Jack
ronni3
DD-WRT Novice


Joined: 03 Feb 2008
Posts: 3

PostPosted: Wed Mar 11, 2009 19:56    Post subject: Reply with quote
I'd like to try this on my WRT54GL v1.1 but I can't find the v24-sp2 firmware. Do I have to purchase the Special Edition firmware from the store in order to get this?

Also how well does this Dual WAN setup work on the WRT54GL router? Is it stable?
citizenatlarge
DD-WRT Novice


Joined: 11 Mar 2009
Posts: 1

PostPosted: Wed Mar 11, 2009 20:49    Post subject: Reply with quote
ronni3 wrote:
I'd like to try this on my WRT54GL v1.1 but I can't find the v24-sp2 firmware. Do I have to purchase the Special Edition firmware from the store in order to get this?

Also how well does this Dual WAN setup work on the WRT54GL router? Is it stable?


For a nice, short, very working solution to the GLv1.1.. Try this link- http://roadrunnerguide.com/dualwan.html

Follow the directions exactly.. Know that the maximum download throughput of the GL is around 28Mbs.. I have two 30/2 Mb connections running and see no increase in downloads, but upload peaks at around 600KB/s now.. I'm happy..
roothuser
DD-WRT Novice


Joined: 16 Mar 2009
Posts: 3

PostPosted: Tue Mar 17, 2009 0:03    Post subject: Reply with quote
First of all i would like to thank everyone for all their hard work! Its been very helpful!

Using a linksys WRT-350N

After reading 60+ pages, trial and error, and hours I think I finally got things sort of kind of working. I see 2 IPs when I use ifconfig although I don't currently dare reboot the rooter LOL

anyways I'm not noticing any speed increases and it seems every site i go to i have the same IP address. All indication leads to me thinking Its only using one of the two connections.

Where does the route.firewall file get used?

Why do i need to specify vlan3 when calling udhcpc-wan2.script when other setups seem to use vlan2?

I did try going to the followings and see activity on the first 2, the 3rd one I see very little:

http://192.168.1.1/graph_if.svg?vlan1
http://192.168.1.1/graph_if.svg?vlan2
http://192.168.1.1/graph_if.svg?vlan3

i'm using a dual wan setup for the 350N

Does anyone see anything wrong with this setup or further checks I can do?

Has anyone succesfully set things up with a newer release?

1. Install dd-wrt.v24_std_generic.bin (RC3)

2. Setup SSH
Go to "Services" tab. Set SSHd to Enable and click "Save"
Once the page has reloaded click "Reboot Router"

3. Enable Jffs2
Go to "Administration" tab. Set JFFS2 to Enable and click "Save"
Change "Clean JFFS2" to "Enable" and click "Apply Settings"
Change "Clean JFFS2" to "Disable" and click "Save"

4. Set Port 4 under its own LAN
Go to "Setup"->"VLANs"
Click off port 4 under VLAN 0
Click on port 4 under VLAN 2 and click "Save"
Force a reboot by going to Services and clicking Reboot Router

5. Setup new VLAN settings
ssh to the box and type the following commands

--- start ---
nvram set vlan1ports="1 2 3 8*"
nvram set vlan3ports="4 8"
nvram set vlan3hwname=et0
nvram commit
reboot
--- end ---

could not connect using wireless access so i physically rebooted the machine by disconnecting and reconnecting the power supply

6. Setup for scripts
At the command like:
mkdir /jffs/scripts

Via WinSCP copy udhcpc-wan2.script.txt as udhcpc-wan2.script into /jffs/scripts
Copy firewall.firewall.txt as firewall.firewall into /jffs/scripts (the version from page 5)
Copy routes.firewall.txt as routes.firewall into /jffs/scripts

chmod +755 /jffs/scripts/*

Go to "Administration"->"Commands"

7. Ensure scripts run automatically
Go to "Administration"->"Commands"

Enter the following and click "Save Startup"
udhcpc -s /jffs/scripts/udhcpc-wan2.script -i vlan3
Enter the following and click "Save Firewall"
/jffs/scripts/firewall.firewall

8. Change what's pluged in to the router
Unplug the router from the power supply
Plug one modem into the WAN port and the other into Port 4
Plug the router's power supply back
roothuser
DD-WRT Novice


Joined: 16 Mar 2009
Posts: 3

PostPosted: Tue Mar 17, 2009 4:00    Post subject: Reply with quote
when i do an ifconfig my first IP is at VLAN2 and my second IP is at VLAN3...is that normal?
cnr0616
DD-WRT Novice


Joined: 18 Mar 2009
Posts: 5

PostPosted: Wed Mar 18, 2009 5:20    Post subject: Dual Wan, Same ISP, same network Reply with quote
I did not know if it was possible to run a dual-wan setup with both WAN interfaces on the same network (identical gateway and subnet). Also both WANs are DHCP. I have figured out how to assign a different mac address to vlan2 but it is not assigned an IP by the ISP. Is this possible?

I purchased a Syswan SW24 load balancer (http://syswan.com/SW24_Overview.htm) from NewEgg a few months back, and it would allow me to have both WAN interfaces on the same network. However I like dd-wrt better.

Any help would be appericated.
marianoquilmes
DD-WRT Novice


Joined: 19 Mar 2009
Posts: 1

PostPosted: Thu Mar 19, 2009 4:21    Post subject: Reply with quote
Hello, I would like to ask you if in order to setup a WRT54gl V1.1 with the V23 Sp2 Std NoKaid firmware, I just have to switch the ports on the nvram set commands and then just copy the 3 scripts on page 5 and set them as defaults commands in Startup and Firewall? Because I bond two 3 Mbps connections but apparently it uses the 100% of one and the 30% of the other. I have done yet with a WRT54g V2.2 and with that version it works flawlessly. If annyone has a GL setup please give me a hint. Thanks
Goto page Previous  1, 2, 3 ... 55, 56, 57 ... 66, 67, 68  Next Display posts from previous:    Page 56 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