[linux-network] Re: iptables httpd redirect

---------

From: Gürkan KARABATAK (gkarabatak@firat.edu.tr)
Date: Sun 27 Jul 2003 - 19:03:01 EEST

  • Next message: Qmit_Murato=F0lu?=: "[linux-network] test"

    > $IPTABLES -t nat -A PREROUTING -i $INET_IP -p tcp --dport 8080 -j DNAT =

    > --to 192.168.0.20:80

    -i $INET_IP diye yazdiginiz yeri -d $INET_IP diye deneyin.

    -----Original Message-----
    From: Kemal M. Ergur [mailto:kemal.ergur@gtkbilgisayar.com]=20
    Sent: Saturday, July 26, 2003 4:02 PM
    To: linux-network@liste.linux.org.tr
    Subject: [linux-network] Re: iptables httpd redirect

    On Sat, 2003-07-26 at 14:16, Yi=F0it Belevi wrote:
    >=20
    > > Merhabalar;
    > > Bir turlu =FDp tables ile redirect yapamad=FDm yard=FDmc=FD =
    olursanu=FDz sevinirim.1
    > > tane ip adresim var d=FDsar=FDda bir dns ile bu ip adresine =
    yonlendirme
    > > yap=FDyorum.httpd.conf ta bunlar=FDn her birini vituralhost olarakj
    > > belirtiyorum.Apache ile static ipmin 8080 portuna redirect yap=FDp =
    bunu ip
    > > tables ile ba=FEka bir makinaya g=F6ndermek istiyorum.A=FEag=FDda =
    kulland=FDg=FDm
    > > 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=3D"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.
    =20
    "
    yani -i parametresinden sonra $INET_IP degiskeni yanlis oluyor. Zaten
    iptables'in da size hata vermesi lazim.

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


  • Next message: Qmit_Murato=F0lu?=: "[linux-network] test"

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.