Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Welcome to the Diverse Solutions Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Dec 2017
    Location
    77 Water Street,Suite 7000 New York, NY 10005
    Posts
    21

    Forward one TCP port to another

    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
    Kasiratnam is a marketing specialist and interest in reading novels.
    Read my blogs best way to find a job and Best Cable Internet Companies

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •