- 論壇徽章:
- 0
|
傷心了。這條就可以。。
-A PREROUTING -d 125.x.x.x -p tcp -m tcp --dport 8888 -j DNAT --to-destination 192.168.1.4:80
而且:
linux:/data/shell # telnet 192.168.1.4 80
Trying 192.168.1.4...
Connected to 192.168.1.4.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
linux:/data/shell # telnet 192.168.1.3 80
Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
并且:
linux:/data/shell # wget 192.168.1.4
--12:05:16-- http://192.168.1.4/
=> `index.html'
Connecting to 192.168.1.4:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: login.php [following]
--12:05:16-- http://192.168.1.4/login.php
=> `login.php'
Connecting to 192.168.1.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,104 [text/html]
100%[=================================================================================>] 3,104 --.--K/s
12:05:16 (34.83 MB/s) - `login.php' saved [3104/3104]
linux:/data/shell # wget 192.168.1.3
--12:05:18-- http://192.168.1.3/
=> `index.html'
Connecting to 192.168.1.3:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 70,000 --.--K/s
12:05:18 (4.89 MB/s) - `index.html' saved [70000] |
|