Net Balancer…

This topic contains 12 replies, has 0 voices, and was last updated by  maxchock 8 years, 7 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #42458

    maxchock
    Member

    Hi all,

    I’m very new to Zeroshell, and I have little knowledge about networking. I’m trying to setup a load balancer which can do traffic shaping for my Internet Cafe. Before deploy to a real PC I actually have it install in a VirtualBox.

    here is the setup of my environment.

    here is the screenshot of the zeroshell-> setup->network

    here is the screenshot of “NetBalancer”

    i can online using DEFAULT GATEWAY or Streamyx but when I enable Load balancing, the Zeroshell itself fail to run the Ping test under “Utilities”-> IP Check

    As it’s return the DNS Lookup ERROR, I did actually add a line into “DNS Forwarder”

    The Zeroshell still fail on the Ping test if keyin domain name such as google.com but it return success if I key in google’s IP instead of URL.

    So I wish someone can help to solve my problem. Thanks for helping in advance.

    #50517

    ppalias
    Member

    First post here the contents of the “DNS Options” window that pops up. I suspect it is a query – recursion issue.

    #50518

    maxchock
    Member

    is this the one you meant?

    #50519

    ppalias
    Member

    Yes… add the following

    recursion yes;
    allow-query {10.0.0.0/8;127.0.0.0/8;};

    change 10.0.0.0/8 with your LAN address space.

    #50520

    maxchock
    Member

    I tried using

    “recursion yes;
    allow-query {192.168.1.0/8;127.0.0.0/8;};”

    and

    “recursion yes;
    allow-query {10.1.1.0/8;127.0.0.0/8;};”

    neither of them are working, it gave same error.

    #50521

    ppalias
    Member

    Do me a favor and open a shell to execute these commands.

     cat /etc/resolv.conf
    dig www.yahoo.com
    netstat -anp | grep :53
    #50522

    maxchock
    Member

    ok,

    “cat /etc/resolv.conf” return
    nameserver 127.0.0.1

    dig http://www.yahoo.com return
    ; <> DiG 9.5.1-P2 <> http://www.yahoo.com
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached

    netstat -anp | grep :53
    tcp 0 0 192.168.250.254:53 0.0.0.0:* LISTEN 1545/named
    tcp 0 0 192.168.0.55:53 0.0.0.0:* LISTEN 1545/named
    tcp 0 0 10.1.1.55:53 0.0.0.0:* LISTEN 1545/named
    tcp 0 0 192.168.0.55:53 0.0.0.0:* LISTEN 1545/named
    tcp 0 0 192.168.141.142:53 0.0.0.0:* LISTEN 1545/named
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 192.168.250.254:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 192.168.0.55:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 10.1.1.55:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 192.168.1.55:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 192.168.141.142:53 0.0.0.0:* LISTEN 1545/named
    udp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1545/named

    I tried to vi the resolv.conf, but permission is denied even i “su”…

    #50523

    ppalias
    Member

    named is up, but no servers can be reached. I suspect a firewall blocking your box from reaching the forwarders.
    Is

    ping 208.67.220.220

    answering?
    What is the output of

    iptables -L -v

    ?

    #50524

    maxchock
    Member

    ping is working and replied.

    below is the screen shot of iptable.



    #50525

    ppalias
    Member

    As I said there is a firewall blocking you.

    0 0 ACCEPT     udp  --  any    any     anywhere             anywhere            udp spt:domain state ESTABLISHED

    Means you don’t receive DNS replies back. You have not printed SYS_OUTPUT chain, which will show you that your system sends DNS packets out.

    #50526

    maxchock
    Member

    hmm…

    I don’t understand, because i don’t have any firewall setup in my network. And why the DNS can reply back if i’m using only 1 WAN?

    Thanks for helping me. Really wish to deploy zeroshell in my cafe.

    #50527

    ppalias
    Member

    Have you added the

    recursion yes;
    allow-query {192.168.0.0/16;10.0.0.0/8;127.0.0.0/8;};

    to the options window? If not what is the error?

    #50528

    maxchock
    Member

    add to where?? which part?

    Thanks.

    #50529

    ppalias
    Member

    In the DNS-> Options tab.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.