I want to do a static routing in linux, should i have to config it in squid?
Users are using squid 192.168.0.2 / 3128 to access internet, but when they access
7777 port, 25 port or.....port , then they will be routed to 192.168.0.1, how can i do that?
- HarmonixerLv 61 decade agoFavorite Answer
在standard Linux，已經有static routing, 可以使用指令但沒有根據source port 跟 destination port 做routing.
route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.223
Squid 只是一個proxy server，應該跟您要的不一樣，除非只是針對web access
這部份的話，下載MPLS, 應該就可以根據port 來做routing. 不過MPLS有一點冷門，所以要看
2007-11-30 16:05:56 補充：
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 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.232
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.
- V739UVLv 51 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.
- Anonymous1 decade ago