Noob question for network/routing

Home Page Forums Network Management Networking Noob question for network/routing

This topic contains 1 reply, has 0 voices, and was last updated by  Nickman 12 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40627

    Nickman
    Member

    Hi all and grats for this great work.

    im trying to configure zeroshell as gateway/router for my dsl lines (i have more than 2) but i have some problems.
    I want to use eth0 for the local lan and eth1 for outgoing connections (internet).
    In router i did a static route as.
    Destination as host ->192.168.111.5, and interface eth1.
    And i set up the default gateway 192.168.111.5.
    In my limited knowledge that means, every packet that trying to reach internet will use eth1 nic which has default gateway the 192.168.111.5 ip.
    But is not working. Any advice on this please?

    Thanks in advance.

    p.s. sorry for my poor english but is not my native lang 🙂

    #45356

    nrandom
    Member

    I believe you need to click on router > then nat and select eth01 to be translated by eth00.

    Then you should see internet. But like you I am newbie.

    #45357

    Nickman
    Member

    After some searching here and there i make it works. All i had to add was the 127.0.0.0 in routing table.
    But now i have a greater problem. How can i route my packets according to class (ftp, http, voip, gaming ports, p2p) to a different nic for each class?
    I made some rules in QoS but as long as the gw has the same ip, every packet goes through eth01

    Here is my entries on classifier
    ================================================
    1 ETH00 ETH01 MARK tcp opt — in ETH00 out ETH01 0.0.0.0/0 -> 0.0.0.0/0 PHYSDEV match ! –physdev-is-bridged source IP range 192.168.100.0-192.168.100.100 state NEW,RELATED,ESTABLISHED,UNTRACKED LAYER7 l7proto http tcp spt:80 dpt:80 MARK set 0xc SURFING no
    2 ETH00 ETH02 MARK tcp opt — in ETH00 out ETH02 0.0.0.0/0 -> 0.0.0.0/0 source IP range 192.168.100.0-192.168.100.100 state INVALID,NEW,RELATED,ESTABLISHED,UNTRACKED LAYER7 l7proto http-dap MARK set 0xb DOWNLOADS no
    3 ETH00 ETH02 MARK tcp opt — in ETH00 out ETH02 0.0.0.0/0 -> 195.220.94.166 source IP range 192.168.100.0-192.168.100.100 state NEW,RELATED,ESTABLISHED,UNTRACKED LAYER7 l7proto ftp tcp spt:21 dpt:21 MARK set 0xb DOWNLOADS no
    4 ETH00 ETH01 MARK udp opt — in ETH00 out ETH01 0.0.0.0/0 -> 0.0.0.0/0 source IP range 192.168.100.0-192.168.100.100 state INVALID,NEW,RELATED,ESTABLISHED,UNTRACKED ipp2p v0.8.2 –kazaa –gnu –edk –dc –bit LAYER7 l7proto edonkey udp spts:2000:3000 dpts:4000:5000 MARK set 0xd P2P no
    5 ETH00 ETH02 MARK tcp opt — in ETH00 out ETH02 0.0.0.0/0 -> 0.0.0.0/0 source IP range 192.168.100.0-192.168.100.100 state INVALID,NEW,RELATED,ESTABLISHED,UNTRACKED ipp2p v0.8.2 –kazaa –gnu –edk –dc –bit LAYER7 l7proto edonkey tcp spts:2000:3000 dpts:4000:5000 MARK set 0xd P2P no
    6 ETH00 ETH01 MARK tcp opt — in ETH00 out ETH01 0.0.0.0/0 -> 0.0.0.0/0 source IP range 192.168.100.0-192.168.100.100 destination IP range 87.237.38.200-87.238.38.200 state INVALID,NEW,RELATED,ESTABLISHED,UNTRACKED tcp spt:26000 dpt:26000 MARK set 0xe GAMING no
    7 ETH00 ETH01 MARK tcp opt — in ETH00 out ETH01 0.0.0.0/0 -> 0.0.0.0/0 source IP range 192.168.100.0-192.168.100.100 state NEW,RELATED,ESTABLISHED,UNTRACKED LAYER7 l7proto http tcp spt:80 dpt:80 MARK set 0xc SURFING no
    8 ETH00 ETH01 MARK tcp opt — in ETH00 out ETH01 0.0.0.0/0 -> 66.162.28.88 source IP range 192.168.100.0-192.168.100.100 tcp spt:4010 dpt:4010 MARK set 0xe GAMING no
    ================================================
    Any idea on this?

    Thanks in advance

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

You must be logged in to reply to this topic.