Navigation

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

    Fetch from pfsense shell with different gateway

    Routing and Multi WAN
    2
    4
    471
    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.
    • T
      tonysud last edited by

      How can I specify to fetch which gateway I want to use to download a file?
      If I have three gateways, how to tell fetch which to use do download a file?

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

        You can't policy route traffic from the firewall itself, but you can set a source address which can nudge it.

        fetch --bind-address x.x.x.x https://blah
        

        Where x.x.x.x is the IP address of the WAN you want to use, for example:

        : fetch --bind-address x.x.x.x -qo - http://checkip.dyndns.org
        <title>Current IP Check</title>Current IP Address: x.x.x.x
        : fetch --bind-address y.y.y.y -qo - http://checkip.dyndns.org
        <title>Current IP Check</title>Current IP Address: y.y.y.y
        
        
        1 Reply Last reply Reply Quote 0
        • T
          tonysud last edited by

          ohhhh it works!

          I have tested the same command on FreeBSD and it doesn't work

          is fetch of pfsense different from FreeBSD fetch or what else?

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

            Same fetch, but our pf ruleset has some tricks with route-to that make it work.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy