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 |