Thread
:
port forwarding?
View Single Post
03-02-2004, 11:00 PM
#
3
(
permalink
)
redhead
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
Re: port forwarding?
Quote:
Originally posted by sde
i have 2 ips i can use and i want to forward port 8443 of 1 ip to port 80 of another.
Code:
~ > iptables -t nat -A PREROUTING -d 1.2.3.4 \ -p tcp --dport 8443 -j DNAT --to 5.6.7.8:80
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead
View Public Profile
Visit redhead's homepage!
Find More Posts by redhead