Page 1 of 1

x86 custom build WAN issue

Posted: Wed Sep 23, 2015 8:15 pm
by orangetek
Hi all, I have a dual core pc running an intel core2duo and 2 intel pcie nic's. It was my first time building a custom image and it actually works!! I even enabled both cores and 4gb mem which I know is just overkill but if all works out ok, I will have 2 of these running on my network of 400 customers. Currently the customers are going through a 9 core mikrotik ccr which is configured as a load balancer for the 2 wans. Each wan is connect to a routerstation pro running gargoyle 1.8.0. The ccr is not doing any nat and is routed to each gargoyle router. Each internet connection is 120m/8m and this is where the x86 build comes in. On a busy night, the routerstation pro's get hammered to the point where I cant even open gargoyles gui. I cant live without ACC so I need more horsepower. The image I built works as far as detecting all nic's, gui etc. I can log in to the gargoyle gui but when I set the wan interface to DHCP wired from disabled, the lan dies and I cant get back in no matter what I do. This also happens in a virtual machine. Can anyone shed some light on this?
Thanks in advance.

Re: x86 custom build WAN issue

Posted: Wed Sep 23, 2015 9:07 pm
by nworbnhoj
Wow - that is an interesting setup and challenge! Nice to hear of Gargoyle under some real load :-) Look forward to learning something from the discussion!

Re: x86 custom build WAN issue

Posted: Wed Sep 23, 2015 9:40 pm
by Lantis
Have you attempted to bring the interface up manually? i.e. Not through the gui

Re: x86 custom build WAN issue

Posted: Wed Sep 23, 2015 9:48 pm
by orangetek
haven't tried that, i'll google the commands, give it a go and report back.
Thanks :)

Re: x86 custom build WAN issue

Posted: Wed Sep 23, 2015 9:52 pm
by Lantis
You'll want to set your settings in /etc/config/network and then use something along the lines of ifup wan or a network restart.

Re: x86 custom build WAN issue

Posted: Thu Sep 24, 2015 7:14 am
by orangetek
Lantis, I did what you said and I got it all working. In /etc/config/network I added

Code: Select all

config interface 'wan'
        option ifname 'eth0'
        option proto 'dhcp'
and set the lan interface to eth1 thinking that gargoyle always uses eth0 as wan. The only thing to note is, don't touch the wan settings in the gui after this config otherwise it messes everything up. At 100mbits/sec the load on this thing is 3% over 15 minutes. I also bumped up the max connections to 65536. Is there any way to customize the way gargoyle sets up the wan from the gui? Thanks again for your help :)

Re: x86 custom build WAN issue

Posted: Thu Sep 24, 2015 7:21 am
by Lantis
Not without rewriting that page of the GUI. You figured it out yourself.
When you hit save changes it wipes all configs and rewrites what it is programmed to.

If you are familiar with programming you could go through and comment out everything that you don't need.

Re: x86 custom build WAN issue

Posted: Thu Sep 24, 2015 8:58 am
by orangetek
I'll definitely give it a go and post up the image for others who might want to try it out.