[linux-network] Re: iptables httpd redirect

---------

From: Kemal M. Ergur (kemal.ergur@gtkbilgisayar.com)
Date: Sat 26 Jul 2003 - 16:01:59 EEST

  • Next message: info@teknobilge.com: "[linux-network] Re: aptal terminal"

    On Sat, 2003-07-26 at 14:16, Yiğit Belevi wrote:
    >
    > > Merhabalar;
    > > Bir turlu ıp tables ile redirect yapamadım yardımcı olursanuız sevinirim.1
    > > tane ip adresim var dısarıda bir dns ile bu ip adresine yonlendirme
    > > yapıyorum.httpd.conf ta bunların her birini vituralhost olarakj
    > > belirtiyorum.Apache ile static ipmin 8080 portuna redirect yapıp bunu ip
    > > tables ile başka bir makinaya göndermek istiyorum.Aşagıda kullandıgım
    > > betikleri belirttim.
    > >
    > > Sevgiler
    > >
    > > Yigit Belevi
    > >
    > > httpd.conf
    > >
    > > <VirtualHost xxx.xxx.xxx.xxx:80>
    > >
    > > ServerName abc.def.com
    > >
    > > Redirect / http://xxx.xxx.xxx.xxx:8080
    > >
    > > </VirtualHost>
    > >
    > > rc.firewall
    > >
    > > INET_IP="xxx.xxx.xxx.xxx"
    > >
    > > $IPTABLES -t nat -A PREROUTING -i $INET_IP -p tcp --dport 8080 -j
    > DNAT --to
    > > 192.168.0.20:80
    > >
    man iptables'dan bir alinti:

    " -i, --in-interface [!] name
                  Name of an interface via which a packet is going to be
    received (only for packets entering the INPUT, FORWARD and PREROUTING
                  chains). When the "!" argument is used before the
    interface name, the sense is inverted. If the interface name ends in a
    "+",
                  then any interface which begins with this name will
    match. If this option is omitted, any interface name will match.
     
    "
    yani -i parametresinden sonra $INET_IP degiskeni yanlis oluyor. Zaten
    iptables'in da size hata vermesi lazim.

    -- 
    Kemal M. Ergur <kemal.ergur@gtkbilgisayar.com>
    GTK Bilgisayar 
    

  • Next message: info@teknobilge.com: "[linux-network] Re: aptal terminal"

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.