RIP, EIGRP, OSPF, IS-IS, BGP, MPLS, VTP, STP.
User avatar
alex6999
Junior Member
Posts:
51
Joined:
Sun Mar 22, 2009 1:58 am

Forward one TCP port to another

Fri Dec 01, 2017 10:45 am

Trying to forward ports to proxy
in Linix it looks like
iptables -t nat -A OUTPUT -p tcp -m tcp --dport 80 -d 195.82.146.120/30 -j DNAT --to-destination 163.172.167.207:3128

in Cisco it looks like
ip nat outside source static tcp 163.172.167.207 3128 195.82.146.120 80 extendable
ip nat outside source static tcp 163.172.167.207 3128 195.82.146.121 80 extendable
ip nat outside source static tcp 163.172.167.207 3128 195.82.146.122 80 extendable
ip nat outside source static tcp 163.172.167.207 3128 195.82.146.123 80 extendable

first string working fine, but second cant be added with message
% 163.172.167.207 already mapped (195.82.146.120 -> 163.172.167.207)

Any way to write it in one line? with /30 mask?
Thanks

'
Return to Cisco Routing and Switching

Who is online

Users browsing this forum: No registered users and 18 guests