Salut,

 Am incercat sa redirectez cererile web ale unei statii printr-un
`router` [aka linux] la un proxy, chestie care la mine arata cam asa :

pe `router` am ceva de genul :

root@betanou:/home/mage# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
MARK       tcp  --  194.105.23.5         anywhere           tcp
dpt:www MARK set 0xc0
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
   
&&

root@betanou:/home/mage# cat rc.fire_ip2
#!/bin/sh -x
echo 202 squid_eon >>/etc/iproute2/rt_tables
/abin/ip rule add fwmark 0xc0 table squid_eon
/abin/ip route add default via 10.0.0.11 dev eth0 table squid_eon
/abin/ip route flush cache

iar pe squid am ceva de genul :
[root@mage /root]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             anywhere           tcp
dpt:http redir ports 8080
 
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Totul pare sa functioneze cum ar trebui, cu exceptia faptului ca la
proxy ajunge un request de tip null [ adica 1007625754.193      0
10.0.0.5 NONE/400 1078 GET / - NONE/- - ], deci tabela de routare
functioneaza .. dar, de ce nu ajunge si requestul ? Idee ?

mentionez ca pe statia de unde incerc primesc un mesaj de genul :
 
   While trying to retrieve the URL: /
 
   The following error was encountered:
     * Invalid URL

 Multumesc
-- 
************************************************************
*      Cezar Atanasiu         *     [EMAIL PROTECTED]            *
*        SC 1A SCS            *     http://www.1a.ro       *
*     Grivitei 4 Street       *     voice: (041) 660459    *
*      Contanta, 8700,        *     fax: (041) 660079      *
*         Romania                                          *
************************************************************
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui