hut c asked in 社會與文化語言 · 1 decade ago

static routing

I want to do a static routing in linux, should i have to config it in squid?

Users are using squid / 3128 to access internet, but when they access

7777 port, 25 port or.....port , then they will be routed to, how can i do that?

3 Answers

  • 1 decade ago
    Favorite Answer

    在standard Linux,已經有static routing, 可以使用指令但沒有根據source port 跟 destination port 做routing.


    route add -net netmask gw

    Squid 只是一個proxy server,應該跟您要的不一樣,除非只是針對web access

    這部份的話,下載MPLS, 應該就可以根據port 來做routing. 不過MPLS有一點冷門,所以要看

    2007-11-30 16:05:56 補充:

    English translation:

    In Linux, there is already a static routing command available, but it is only based on Destination IP and Source IP, not port number.

    If you only want to route based on IP information, use the command

    route add -net netmask gw

    2007-11-30 16:06:00 補充:

    SQUID is only a proxy server, and it targets only web access, might not be what you are looking for.

    I suggest you to look for MPLS, it is non-standard, but can be downloaded. I believe it is closer to what you are looking for.

  • V739UV
    Lv 5
    1 decade ago

    I suggest you to post your question in the section of 電腦網路 in which many computer experts will answer you question.

    And... remember to post your question there in Chinese. You will get your solution faster.

  • Anonymous
    1 decade ago

    請問你是在問問題~還是要翻譯啊? 霧煞煞~@@

Still have questions? Get your answers by asking now.