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 ... 53, 54, 55 ... 66, 67, 68  Next
Author Message
Bman69
DD-WRT Novice


Joined: 23 Dec 2006
Posts: 14

PostPosted: Thu Feb 12, 2009 9:23    Post subject: Reply with quote
hmm I want to try this but i dont know which router to buy that would support the bandwidth ill be pushing

currently i have 2 modems connected to two NICs in my pc and they both work for the most part anyway each modem is 30/10 mbit yeah comcast is nice Smile anyway i download at times up to 7MB/s so I need a router that can keep up, can anyone recommend one and that is also supported by this firmware? its not always easy to find the max throughput for some routers so i'm hoping you guys can chime in with your experiences
Sponsor
Morty
DD-WRT Novice


Joined: 11 Feb 2009
Posts: 1

PostPosted: Fri Feb 13, 2009 9:27    Post subject: Reply with quote
Would this be possible with three different types of DSL modems, I have got VDSL2, ADSL2+ and ADSL2+ bundle modems two of them in the same ip range?
I would like to try this with my WRT54G v2.2 if it's possible. I'm running v24 sp1 on the router.
82280zx
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 5

PostPosted: Fri Feb 13, 2009 20:09    Post subject: Reply with quote
I feel kinda dumb asking this but is there a noob guide on how to set this up? I'm not sure how to install the scripts into my router. I'm pretty knowledgable about things but this has me a little lost... but then again I haven't sleep for a while ether lol. Could you guys please help me set this up? I can't figure out how to upload the scripts, it's not like solaris or dos in the telnet window so I'm kinda lost on how to get this running. Any help would be greatly appreciated and this would be awesome.
wenlez
DD-WRT Novice


Joined: 23 Jan 2009
Posts: 21
Location: Chicago

PostPosted: Sat Feb 14, 2009 0:49    Post subject: Reply with quote
I still don't know how to add 4.2.2.1 as DNS. can some one give some help?
Bman69
DD-WRT Novice


Joined: 23 Dec 2006
Posts: 14

PostPosted: Sat Feb 14, 2009 9:24    Post subject: Reply with quote
lol dns is easy use this

for Vista https://www.opendns.com/homenetwork/start/device/windows-vista
for XP https://www.opendns.com/homenetwork/start/device/windows-xp
leoforti
DD-WRT Novice


Joined: 09 Dec 2008
Posts: 7

PostPosted: Sat Feb 14, 2009 14:35    Post subject: QoS with Dual Wan.. how? Reply with quote
Bump!
Finally after many failed attempts with DHCP I managed to get the thing working with both routers with static IP (with DMZ in each one).
Downloads are lightning fast, but when I use P2P everything lags down so, my question now is: How should I set QoS?

I've two DSL connection of: 3 Mbps Down / 256 Kbps Up (each one).

Should I set Uplink in QoS with 85%~90% of Uplink wan1 + Uplink wan2?



Thanks.
wenlez
DD-WRT Novice


Joined: 23 Jan 2009
Posts: 21
Location: Chicago

PostPosted: Sat Feb 14, 2009 19:20    Post subject: Reply with quote
will this work on a NEtgear WNR834B V2 router?
Bman69
DD-WRT Novice


Joined: 23 Dec 2006
Posts: 14

PostPosted: Sun Feb 15, 2009 8:44    Post subject: Reply with quote
grrr i need to find a dual wan router thats not serious $$$$$ like some big ones i looked at.... look at the bandwidth i pull out of two modems

shaad
DD-WRT User


Joined: 19 May 2008
Posts: 78

PostPosted: Sun Feb 15, 2009 16:47    Post subject: Reply with quote
Hi everybody,

Finally I get dual wan running correctly on my wrt54g-tm (v24-sp2 01/10/09 std-nokaid) with the help of Jbarbieri scripts, using 1Mbit adsl and 1.4Mbit 3G broadband.

Here are my settings if anyone is interested :-)

nvram set vlan0ports="3 2 1 5*"
nvram set vlan1ports="4 5"
nvram set vlan2ports="0 5"
nvram set vlan2hwname=et0
nvram commit
reboot


wan2.firewall script

#!/bin/sh

WAN2_IFNAME=vlan2
WAN2_IPADDR=192.168.1.2
WAN2_BROADCAST=192.168.1.255
WAN2_GATEWAY=192.168.1.1
WAN2_NETMASK=255.255.255.0

if [ "$(nvram get wan2_ipaddr)" != "$WAN2_IPADDR" ]; then
nvram set wan2_ifname=$WAN2_IFNAME
nvram set wan2_ipaddr=$WAN2_IPADDR
nvram set wan2_gateway=$WAN2_GATEWAY
nvram set wan2_netmask=$WAN2_NETMASK
nvram set wan2_broadcast=$WAN2_BROADCAST
nvram commit
fi

ifconfig $(nvram get wan2_ifname) $(nvram get wan2_ipaddr) netmask $(nvram get wan2_netmask) broadcast $(nvram get wan2_broadcast) up

Then,

cd /jffs/
wget http://www.jbarbieri.net/dd-wrt/scripts/iptables
cd /jffs/scripts/
wget http://www.jbarbieri.net/dd-wrt/scripts/firewall.firewall
wget http://www.jbarbieri.net/dd-wrt/scripts/routes.firewall
wget http://www.jbarbieri.net/dd-wrt/scripts/udhcpc-wan2.script

chmod 755 /jffs/iptables
chmod 755 /jffs/scripts/*

nvram set rc_startup='/jffs/scripts/wan2.firewall
/jffs/scripts/routes.firewall'

nvram set rc_firewall='/jffs/scripts/routes.firewall
/jffs/scripts/firewall.firewall'
nvram commit
reboot


Here are some outputs:

ifconfig

vlan1 Link encap:Ethernet HWaddr 00:18:F8:68:EA:4C
inet addr:192.168.0.199 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22045 errors:0 dropped:0 overruns:0 frame:0
TX packets:13952 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31773607 (30.3 MiB) TX bytes:979049 (956.1 KiB)

vlan2 Link encap:Ethernet HWaddr 00:18:F8:68:EA:4B
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27455 errors:0 dropped:0 overruns:0 frame:0
TX packets:20262 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36693327 (34.9 MiB) TX bytes:1540512 (1.4 MiB)


ip route

192.168.2.0/24 dev br0 proto kernel scope link src 192.168.2.1
192.168.1.0/24 dev vlan2 proto kernel scope link src 192.168.1.2
192.168.0.0/24 dev vlan1 proto kernel scope link src 192.168.0.199
169.254.0.0/16 dev br0 proto kernel scope link src 169.254.255.1
127.0.0.0/8 dev lo scope link
default equalize
nexthop via 192.168.0.1 dev vlan1 weight 1
nexthop via 192.168.1.1 dev vlan2 weight 1


______________________
3xBroadcom|3xAtheros|



vlan.PNG
 Description:
 Filesize:  33.6 KB
 Viewed:  15953 Time(s)

vlan.PNG


IN7OX
DD-WRT Novice


Joined: 15 Jul 2008
Posts: 19

PostPosted: Mon Feb 16, 2009 9:18    Post subject: Reply with quote
hi there could you please help me out
i am struggling to get speeds out of 2 modems heres my ifconfig


vlan0 Link encap:Ethernet HWaddr 00:1E:E5:5B:6D:56
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:152530 errors:0 dropped:0 overruns:0 frame:0
TX packets:256310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7844881 (7.4 MiB) TX bytes:384820075 (366.9 MiB)

vlan1 Link encap:Ethernet HWaddr 00:1E:E5:5B:xx:xx
inet addr:86.13.xxx.xx Bcast:86.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:251294 errors:0 dropped:0 overruns:0 frame:0
TX packets:148702 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:376102373 (358.6 MiB) TX bytes:8757580 (8.3 MiB)

vlan2 Link encap:Ethernet HWaddr 00:1E:E5:5B:xx:xx
inet addr:86.13.221.xxx Bcast:86.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:251324 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:376105932 (358.6 MiB) TX bytes:8855 (8.6 KiB)


to what ive read on your great topic is my problem is both my modems are on the same submask
is there anyway to change them to get me up and running again
thanks
shaad
DD-WRT User


Joined: 19 May 2008
Posts: 78

PostPosted: Mon Feb 16, 2009 12:50    Post subject: Reply with quote
It seems that you are using cable modem, isnt it? Well I have never used that before, sorry I cant help you in this case.
ace0174
DD-WRT Novice


Joined: 07 Feb 2009
Posts: 6

PostPosted: Tue Feb 17, 2009 1:55    Post subject: Reply with quote
jbarbieri wrote:
iptables --list -nvt mangle
iptables --list -nvt nat

ip route
ip route show table 100
ip route show table 200


edit:

also,

cat /proc/net/ip_conntrack | grep EST


There you go jbarbieri, just got back and situation remains the same. Oh, I'm also getting that cant fork thing after a couple of days of uptime.

Code:
 iptables --list -nvt mangle
Chain PREROUTING (policy ACCEPT 38429 packets, 32M bytes)
 pkts bytes target     prot opt in     out     source               destination
  217 65051 CONNMARK   0    --  vlan1  *       0.0.0.0/0            0.0.0.0/0           ctstate NEW CONNMARK set 0x100
  169 22538 CONNMARK   0    --  vlan2  *       0.0.0.0/0            0.0.0.0/0           ctstate NEW CONNMARK set 0x200
13982  721K CONNMARK   0    --  br0    *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED CONNMARK restore

Chain INPUT (policy ACCEPT 880 packets, 179K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 38423 packets, 32M bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 259 packets, 59741 bytes)
 pkts bytes target     prot opt in     out     source               destination
  171 26581 CONNMARK   0    --  *      *       0.0.0.0/0            0.0.0.0/0           ctstate RELATED,ESTABLISHED CONNMARK restore

Chain POSTROUTING (policy ACCEPT 39102 packets, 32M bytes)
 pkts bytes target     prot opt in     out     source               destination
10665  536K MARK       0    --  *      vlan1   0.0.0.0/0            0.0.0.0/0           MARK set 0x100
 3602  203K MARK       0    --  *      vlan2   0.0.0.0/0            0.0.0.0/0           MARK set 0x200
38054   32M CONNMARK   0    --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save

Chain ETH1 (0 references)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MARK       0    --  *      *       0.0.0.0/0            0.0.0.0/0           MARK set 0x100

Chain ETH2 (0 references)
 pkts bytes target     prot opt in     out     source               destination
    0     0 MARK       0    --  *      *       0.0.0.0/0            0.0.0.0/0           MARK set 0x200


~ # iptables --list -nvt nat
Chain PREROUTING (policy ACCEPT 720 packets, 130K bytes)
 pkts bytes target     prot opt in     out     source               destination                       
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            200.150.62.6                       7       udp dpt:59631 to:192.168.1.101:11813
    0     0 DNAT       icmp --  *      *       0.0.0.0/0            200.150.62.6                       7       to:192.168.1.1
    0     0 DNAT       udp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       udp dpt:64735 to:192.168.1.101:7729
    6   304 DNAT       tcp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:1720 to:192.168.1.101:1720
    3   285 DNAT       udp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       udp dpt:1720 to:192.168.1.101:1720
    2   228 DNAT       udp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       udp dpt:65472 to:192.168.1.101:65472
    1   117 DNAT       udp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       udp dpt:26755 to:192.168.1.144:26755
    0     0 DNAT       tcp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:65472 to:192.168.1.101:65472
    0     0 DNAT       tcp  --  vlan1  *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:26755 to:192.168.1.144:26755
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:113 to:192.168.1.101:113
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            200.150.62.6                       7       udp dpt:113 to:192.168.1.101:113
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:9999 to:192.168.1.120:9999
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            200.150.62.6                       7       udp dpt:9999 to:192.168.1.120:9999
    2   104 DNAT       tcp  --  *      *       0.0.0.0/0            200.150.62.6                       7       tcp dpt:1720 to:192.168.1.101:1720
    1    95 DNAT       udp  --  *      *       0.0.0.0/0            200.150.62.6                       7       udp dpt:1720 to:192.168.1.101:1720
   16  1333 TRIGGER    0    --  *      *       0.0.0.0/0            200.150.62.6                       7       TRIGGER type:dnat match:0 relate:0
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            201.17.214.2                       4       udp dpt:113 to:192.168.1.101:113
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            201.17.214.2                       4       tcp dpt:113 to:192.168.1.101:113
    0     0 DNAT       udp  --  *      *       0.0.0.0/0            201.17.214.2                       4       udp dpt:9999 to:192.168.1.120:9999
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            201.17.214.2                       4       tcp dpt:9999 to:192.168.1.120:9999
   10  1247 DNAT       udp  --  *      *       0.0.0.0/0            201.17.214.2                       4       udp dpt:1720 to:192.168.1.101:1720
  133  6588 DNAT       tcp  --  *      *       0.0.0.0/0            201.17.214.2                       4       tcp dpt:1720 to:192.168.1.101:1720
    0     0 DNAT       icmp --  *      *       0.0.0.0/0            201.17.214.2                       4       to:192.168.1.1
   25  4335 TRIGGER    0    --  *      *       0.0.0.0/0            201.17.214.2                       4       TRIGGER type:dnat match:0 relate:0

Chain POSTROUTING (policy ACCEPT 178 packets, 10891 bytes)
 pkts bytes target     prot opt in     out     source               destination                       
  234 14600 SPOOF_ETH1  0    --  *      vlan1   0.0.0.0/0            0.0.0.0/0                         
  108  7959 SPOOF_ETH2  0    --  *      vlan2   0.0.0.0/0            0.0.0.0/0                         

Chain OUTPUT (policy ACCEPT 10 packets, 1371 bytes)
 pkts bytes target     prot opt in     out     source               destination                       

Chain SPOOF_ETH1 (1 references)
 pkts bytes target     prot opt in     out     source               destination                       
  234 14600 LOG        0    --  *      *       0.0.0.0/0            0.0.0.0/0                                  LOG flags 0 level 4 prefix ` SPOOF_ETH1 '
  234 14600 SNAT       0    --  *      *       0.0.0.0/0            0.0.0.0/0                                  to:200.150.62.67

Chain SPOOF_ETH2 (1 references)
 pkts bytes target     prot opt in     out     source               destination                       
  108  7959 LOG        0    --  *      *       0.0.0.0/0            0.0.0.0/0                                  LOG flags 0 level 4 prefix ` SPOOF_ETH2 '
  108  7959 SNAT       0    --  *      *       0.0.0.0/0            0.0.0.0/0                                  to:201.17.214.24




~ # ip route
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
200.150.62.0/23 dev vlan1  proto kernel  scope link  src 200.150.62.67
201.17.208.0/20 dev vlan2  proto kernel  scope link  src 201.17.214.24
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default equalize
        nexthop via 200.150.62.1  dev vlan1 weight 1
        nexthop via 201.17.208.1  dev vlan2 weight 1



~ # ip route show table 100
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
200.150.62.0/23 dev vlan1  proto kernel  scope link  src 200.150.62.67
201.17.208.0/20 dev vlan2  proto kernel  scope link  src 201.17.214.24
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default via 200.150.62.1 dev vlan1

~ #
~ # ip route show table 200
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
200.150.62.0/23 dev vlan1  proto kernel  scope link  src 200.150.62.67
201.17.208.0/20 dev vlan2  proto kernel  scope link  src 201.17.214.24
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default via 201.17.208.1 dev vlan2
~ #



~ # cat /proc/net/ip_conntrack | grep EST
tcp      6 3599 ESTABLISHED src=123.243.199.91 dst=201.17.214.24 sport=53996 dport=1720 src=192.168.1.101 dst=123.243.199.91 sport=1720 dport=53996 [ASSURED] use=1 rate=23313 mark=512
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=213.239.219.117 sport=6506 dport=63963 src=213.239.219.117 dst=201.17.214.24 sport=63963 dport=6506 [ASSURED] use=1 rate=45355 mark=512
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=79.161.137.67 sport=6426 dport=65004 src=79.161.137.67 dst=200.150.62.67 sport=65004 dport=6426 [ASSURED] use=1 rate=63953 mark=256
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=192.168.1.1 sport=6351 dport=22 src=192.168.1.1 dst=192.168.1.101 sport=22 dport=6351 [ASSURED] use=1 rate=154 mark=0
tcp      6 3596 ESTABLISHED src=192.168.1.101 dst=216.239.51.125 sport=6531 dport=5222 src=216.239.51.125 dst=200.150.62.67 sport=5222 dport=6531 [ASSURED] use=1 rate=321 mark=0
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=195.90.107.35 sport=6422 dport=31756 src=195.90.107.35 dst=201.17.214.24 sport=31756 dport=6422 [ASSURED] use=1 rate=50400 mark=512
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=201.87.72.102 sport=6342 dport=443 src=201.87.72.102 dst=200.150.62.67 sport=443 dport=6342 [ASSURED] use=1 rate=235 mark=256
tcp      6 3506 ESTABLISHED src=192.168.1.101 dst=219.232.241.91 sport=6345 dport=53 src=219.232.241.91 dst=200.150.62.67 sport=53 dport=6345 [ASSURED] use=1 rate=14 mark=512
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=193.11.250.40 sport=6423 dport=14974 src=193.11.250.40 dst=200.150.62.67 sport=14974 dport=6423 [ASSURED] use=1 rate=58692 mark=256
tcp      6 3511 ESTABLISHED src=192.168.1.101 dst=216.239.51.125 sport=6466 dport=5222 src=216.239.51.125 dst=201.17.214.24 sport=5222 dport=6466 [ASSURED] use=1 rate=6 mark=256
tcp      6 3599 ESTABLISHED src=87.98.219.92 dst=201.17.214.24 sport=54797 dport=1720 src=192.168.1.101 dst=87.98.219.92 sport=1720 dport=54797 [ASSURED] use=1 rate=178 mark=512
tcp      6 3599 ESTABLISHED src=192.168.1.101 dst=88.90.176.161 sport=6425 dport=34614 src=88.90.176.161 dst=201.17.214.24 sport=34614 dport=6425 [ASSURED] use=1 rate=15602 mark=0
~ #
82280zx
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 5

PostPosted: Tue Feb 17, 2009 10:46    Post subject: Help please? If possible? Reply with quote
I'm running a Linksys WRT54GS v.5 with the DD WRT 24 sp1 micro generic on it. Am I going to be able to do dual wan with this one? Or do I need a different router?
82280zx
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 5

PostPosted: Tue Feb 17, 2009 21:37    Post subject: Reply with quote
Nevermind I think I got it working =) I changed my firmware back to V24 though no service packs, the others might work as well I found it it was some problems with some of my cables I had.
82280zx
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 5

PostPosted: Wed Feb 18, 2009 1:51    Post subject: Reply with quote
Well I think I have it working... should this combine the bandwidth or is this load balancing? I noticed if I do a bandwidth test it like randomly picks a wan to use and I seem to keep losing my connection with them both running... but I have verified that both VLAN's are pulling a ip and are functioning but I'm just not sure if its working right. Any help would be appreciated.
Goto page Previous  1, 2, 3 ... 53, 54, 55 ... 66, 67, 68  Next Display posts from previous:    Page 54 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