Hallo liste, ich habe 2 Netzwerkkarten, die beide im Internet hängen und über zwei verschiedene Provider laufen. Die eine ist eine 2Mbit leitung, die andere TDSL. Jetzt möchte ich das der Squid nur über DSL läuft (eth2), VPN und alles andere Default über 2mbit (eth1) Wie sage ich dem Squid welches Device er nutzen soll??? Gruß Stefan
Am 23.09.2002 um 08:18 schrieb Stefan Eggert:
Jetzt möchte ich das der Squid nur über DSL läuft (eth2), VPN und alles andere Default über 2mbit (eth1) Wie sage ich dem Squid welches Device er nutzen soll???
http_port 1.2.3.4:port -- Dennis Stosberg eMail: dennis@stosberg.net gpg key: http://stosberg.net/dennis.asc icq: 63537718
Am Montag, 23. September 2002 14:04 schrieb Dennis Stosberg:
Am 23.09.2002 um 08:18 schrieb Stefan Eggert:
Jetzt möchte ich das der Squid nur über DSL läuft (eth2), VPN und alles andere Default über 2mbit (eth1) Wie sage ich dem Squid welches Device er nutzen soll???
http_port 1.2.3.4:port
Würde glatt sagen: "Knapp daneben is auch vorbei!" Das regelt, an welchem Device er Anfragen entgegennimmt. Schau doch mal in die Beispiel - squid.conf (bei 'ner SuSE allgemein unter /usr/share/doc/packages/squid/ zu finden) ;) <Auszug> ... # NETWORK OPTIONS # ----------------------------------------------------------------------------- # TAG: http_port # Usage: port # hostname:port # 1.2.3.4:port # # The socket addresses where Squid will listen for HTTP client # requests. You may specify multiple socket addresses. # There are three forms: port alone, hostname with port, and # IP address with port. If you specify a hostname or IP # address, then Squid binds the socket to that specific # address. This replaces the old 'tcp_incoming_address' # option. Most likely, you do not need to bind to a specific # address, so you can use the port number alone. # # The default port number is 3128. # # If you are running Squid in accelerator mode, then you # probably want to listen on port 80 also, or instead. # # The -a command line option will override the *first* port # number listed here. That option will NOT override an IP # address, however. # # You may specify multiple socket addresses on multiple lines. # #http_port 3128 ..... # TAG: tcp_outgoing_address # TAG: udp_incoming_address # TAG: udp_outgoing_address # Usage: tcp_incoming_address 10.20.30.40 # udp_outgoing_address fully.qualified.domain.name # # tcp_outgoing_address is used for connections made to remote # servers and other caches. # udp_incoming_address is used for the ICP socket receiving packets # from other caches. # udp_outgoing_address is used for ICP packets sent out to other # caches. # # The default behavior is to not bind to any specific address. # # NOTE, udp_incoming_address and udp_outgoing_address can not # have the same value (unless it is 0.0.0.0) since they both use # port 3130. # # NOTE, tcp_incoming_address has been removed. You can now # specify IP addresses on the 'http_port' line. # #tcp_outgoing_address 0.0.0.0 #udp_incoming_address 0.0.0.0 #udp_outgoing_address 0.0.0.0 <\Auszug> Wird wohl doch ehr tcp_outgoing_address 0.0.0.0 sein ;) MfG Mirko -- +--[ Mirko Richter (RHCE) ]------------------------+ | Networks & Communicationsystems | | Mirko Richter | | Ernst-Thaelmann-Str. 5, D-06774 Soellichau | | E-MAIL: m.richter@ngi.de | | Tel. +49/(0)34243/3369-50 \\\\ | | Fax. +49/(0)34243/3369-28 (O O) | +-----------------------------------oOOo-(_)-oOOo--+
participants (3)
-
Dennis Stosberg
-
Mirko Richter
-
Stefan Eggert