Gentoo Archives: gentoo-user

From: "Dmitry S. Makovey" <dmitry@××××××××××.ca>
To: gentoo-user@l.g.o
Subject: [gentoo-user] iptables question
Date: Fri, 20 Jan 2006 20:00:47
Message-Id: 200601201249.25509.dmitry@athabascau.ca
1 somewhat offtopic, but since I need any help I can get:
2
3 how do I redirect trafic from outward facing interface
4 (192.168.1.114:80) to loopback device (127.0.0.1:80) ?
5
6 my most obvious trick:
7 iptables -t nat -A PREROUTING -p tcp -d 192.168.1.114 --dport 80 \
8 -j DNAT --to 127.0.0.1:80
9 and
10 echo 1 > /proc/sys/net/ipv4/ip_forward
11 didn't help. Machine which is opening connection is hanging there
12 indefinitely...
13
14 what did I miss?
15
16 --
17 Dmitry Makovey
18 Web Systems Administrator
19 Athabasca University
20 (780) 675-6245

Replies

Subject Author
[gentoo-user] Re: iptables question James <wireless@×××××××××××.com>
Re: [gentoo-user] iptables question Trenton Adams <trenton.d.adams@×××××.com>