Skip to main content

Thread: strange with internet speed


hi.

there problem:
internet speed on ubuntu server not greater 560 kbit/s, clients have 1000 kbit/s through squid.
if remove squid (dpkg -p squid) , distribute internet through iptables - clients speed becomes same server

squid.conf
[spoiler]
code:
acl src 0.0.0.0/0.0.0.0  acl usr src 192.168.1.2-192.168.1.49  acl manager proto cache_object  acl localhost src 127.0.0.1/32    acl ssl_ports port 443          # https  acl ssl_ports port 563          # snews  acl ssl_ports port 873          # rsync  acl ssl_ports port 5222         # jabber0  acl ssl_ports port 5223         # jabber1  acl safe_ports port 80          # http  acl safe_ports port 21          # ftp  acl safe_ports port 443         # https  acl safe_ports port 123         # ntp  acl safe_ports port 70          # gopher  acl safe_ports port 210         # wais  acl safe_ports port 1025-65535  # unregistered ports  acl safe_ports port 280         # http-mgmt  acl safe_ports port 488         # gss-http  acl safe_ports port 591         # filemaker  acl safe_ports port 777         # multiling http  acl safe_ports port 631         # cups  acl safe_ports port 873         # rsync  acl safe_ports port 901         # swat  acl purge method purge  acl connect method connect    http_access allow manager localhost  http_access deny manager  http_access allow purge localhost  http_access deny purge  http_access deny connect !ssl_ports  http_access deny !safe_ports    http_access allow usr  http_access deny usr  http_access deny    http_port 8085 transparent  icp_port 0  hierarchy_stoplist cgi-bin ?  access_log /squid/log/access.log squid  logfile_rotate 4  refresh_pattern ^ftp:           1440    20%     10080  refresh_pattern ^gopher:        1440    0%      1440  refresh_pattern -i (/cgi-bin/|\?) 0     0%      0  refresh_pattern (release|package(.gz)*)$        0       20%     2880  refresh_pattern .               0       20%     4320  acl shoutcast rep_header x-http09-first-line ^icy.[0-9]  upgrade_http0.9 deny shoutcast  acl apache rep_header server ^apache  broken_vary_encoding allow apache  extension_methods report merge mkactivity checkout  hosts_file /etc/hosts  coredump_dir /squid  cache_mem 64 mb  maximum_object_size 4096 kb  maximum_object_size_in_memory 512 kb  cache_dir ufs /squid/cache 4096 16 256  cache_log /squid/log/cache.log  cache_store_log /squid/log/store.log  pid_filename /squid/log/squid.pid  cache_effective_user proxy  cache_effective_group proxy
[/spoiler]

iptables-save
[spoiler]
code:
# generated iptables-save v1.4.4 on tue may 31 16:21:55 2011  *filter  :input accept [0:0]  :forward accept [5:4556]  :output accept [0:0]    -a input -i eth0 -j accept  -a input -i eth1 -p udp -j accept  -a input -i eth1 -p tcp -j accept  -a forward -j accept  -a output -j accept    commit    # completed on tue may 31 16:21:55 2011  # generated iptables-save v1.4.4 on tue may 31 16:21:55 2011  *mangle  :prerouting accept [414:389052]  :input accept [26:1820]  :forward accept [388:387232]  :output accept [21:9869]  :postrouting accept [409:397101]    commit    # completed on tue may 31 16:21:55 2011  # generated iptables-save v1.4.4 on tue may 31 16:21:55 2011  *nat  :prerouting accept [0:0]  :postrouting accept [0:0]  :output accept [0:0]    -a prerouting ! -d 192.168.1.0/24 -p tcp -m multiport --dports 80,443 -j redirect --to-ports 8085     commit    # completed on tue may 31 16:21:55 2011
[/spoiler]

if iptables
[spoiler]
code:
...  -a postrouting -s 192.168.1.0/24 ! -d 192.168.1.0/24 -p udp -j snat --to-source 192.168.50.254   -a postrouting -s 192.168.1.0/24 ! -d 192.168.1.0/24 -p tcp -j snat --to-source 192.168.50.254  ...
[/spoiler]

this?



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] strange with internet speed


Ubuntu

Comments