Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Redirect Traffic 80 to 8080 Only For Spesific IP

    NAT
    3
    7
    6.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mynullvoid
      last edited by

      Hi,

      I got a network which connected to another network using same subnet but different gateway. I had created a static route for the resources on the other network, but the issue is for the computer to access the resources on that network, they must use proxy port which is 8080.

      My question is how can I redirect outgoing port of IP xx.xx.xx.xx from 80 to 8080?

      Thank you

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        This isn't possible in the GUI (yet) since that would require doing a port forward conditionally based on source IP, and that functionality doesn't currently exist.

        IIRC, someone is working on that but it hasn't been imported into 2.0 yet even.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • M
          mynullvoid
          last edited by

          Jimp, thanks for the reply.

          Let me explain further. My 'LAN Network A' connected over wireless bridge to 'LAN Network B' which also resides on the same subnet. 'LAN Network A' having DSL connection gateway with dynamic IP and 'LAN Network B' have Fixed IP as gateway.

          HTTP resources at IP xxx.xxx.xxx.xxx only permits access coming from Fixed IP of 'LAN Network B', where in 'LAN Network B' all traffic must go through a proxy server yyy.yyy.yyy.yyy at port 8080.

          I had created a static route from 'LAN Network A' to use 'LAN Network B' gateway but how can I set so that the HTTP traffic will pass through yyy.yyy.yyy.yyy at port 8080.

          The last option is for me to manually set this proxy information in the browser, but when I set that, I will have problem if the user is accessing other than IP xxx.xxx.xxx.xxx.

          FYI 'LAN Network A' is having both HAVP and Squid running at this network gateway.

          Please assist. Thank you

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            You might be able to pull that off on the LAN Network A router with a port forward on LAN that is setup thusly:

            Interface: LAN
            External Address: any
            Protocol: TCP
            External Port Range: 80
            NAT IP: <ip address="" of="" your="" proxy="" on="" lan="" b="">Local Port: 8080</ip>

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • M
              mynullvoid
              last edited by

              Jimp, thank you for the reply,

              From your setting a port forward setting that you demonastrate, I guess it is for all the outgoing http traffic, in my case I only want to port forward if the destination port 80 of IP is xxx.xxx.xxx.xx to use proxy IP yyy.yyy.yyy.yyy at port 8080

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                That is what I said you cannot currently do in the GUI. You can't apply that rule conditionally.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  That's policy NAT, you can do that in 2.0.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.