Results 1 to 5 of 5

Thread: Routing internet to one port

  1. #1
    470 NNTP User

    Default Routing internet to one port

    Hey,

    I have had troubles installing a whitelist filter on my computer. The problem is that somehow firefox, opera and konqueror are able to go through proxies (by using direct internet). I would like to route all internet to one port. Thus I can control what travels through and what doesn't. Even when I block the standard 80 or 8080 ports, the browsers seem to find other open ports.

    Any tips to routing all trafic to one port?

    Thanx in advance,
    /JG

  2. #2

    Default Re: Routing internet to one port

    Quote Originally Posted by 470 View Post
    I would like to route all internet to one port.
    Sorry, but this idea is ridiculous.

    "Internet" is a little more than only http, so how do you want to cope with all those different protocols arriving at the same port?

    Perhaps you should have a look at "squid", but don't expect it to be a 100% bullet proof solution (because there is none).

  3. #3
    470 NNTP User

    Default Re: Routing internet to one port

    Yes you are right, Internet as in http. I use squid, but I might have to figure something else out.

    So, rephrasing: how to route all http traffic to one port?

  4. #4
    Join Date
    Jun 2008
    Location
    Taiwan
    Posts
    150

    Default Re: Routing internet to one port

    Did you want to configure transparent proxy?
    Here is example command to configure by iptable.
    #iptables -t nat -A PREROUTING -i eth0 -p tcp -s 192.168.0.0/24 \
    --dport 80 -j REDIRECT --to-ports 3128
    Regards,
    Bryan Yu
    http://lifestory.moqin.com/

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Routing internet to one port

    Quote Originally Posted by 470 View Post
    Yes you are right, Internet as in http. I use squid, but I might have to figure something else out.

    So, rephrasing: how to route all http traffic to one port?
    Should not be done. Simple as that.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •