Route LAN traffic through VPN gatewayRoute only ssh traffic through VPNiptables redirect traffic from VPN...

Is it possible to observe space debris with Binoculars?

Does POSIX guarantee the paths to any standard utilities?

Is there a reason effects that introduce another combat phase also create another main phase?

How many people can lift Thor's hammer?

French equivalent of "my cup of tea"

Do 643,000 Americans go bankrupt every year due to medical bills?

How do I make my fill-in-the-blank exercise more obvious?

What is the meaning of でも 私 あなたのそういうところ すきよ?

Did the US Climate Reference Network Show No New Warming Since 2005 in the US?

Is it risky to move from broad geographical diversification into investing mostly in less developed markets?

Combinatorics problems that can be solved more easily using probability

Were the women of Travancore, India, taxed for covering their breasts by breast size?

Fantasy Military Arms and Armor: the Dwarven Grand Armory

Never make public members virtual/abstract - really?

If magnetic force can't do any work, then how can we define a potential?

Is the interior of a Bag of Holding actually an extradimensional space?

Identifying the following distribution

Would you recommend a keyboard for beginners with or without lights in keys for learning?

Where on Earth is it easiest to survive in the wilderness?

Why is a pressure canner needed when canning?

When making yogurt, why doesn't bad bacteria grow as well?

Was "The Hobbit" ever abridged?

How can I oppose my advisor granting gift authorship to a collaborator?

What fraction of 2x2 USA call signs are vanity calls?



Route LAN traffic through VPN gateway


Route only ssh traffic through VPNiptables redirect traffic from VPN interface to next interfaceRoute VPN traffic through different proxiesVPS: How to forward traffic to devices from public IPUsing a VPN for certain applications via a network namespaceRaspberry Pi 3 B as VPN Hotspot - No Internet on Client Side - Two Wi-Fi AdaptersHow to route specific VPN traffic via specific VPN client?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















My iMac has software which connects to a remote VPN. It works well - but only that specific device.



I now want to allow other devices on my network to access the same VPN connection via the iMac. The reason for doing this is because my phone cannot connect to the VPN itself as it does not support the OpenVPN protocol.



I have enabled port forwarding with: sysctl -w net.inet.ip.forwarding=1



I have tried to add the following to line 32 in my /etc/pf.conf file: nat on utun1 from en0:network to any -> (utun1) where en0 is my ethernet port that the internet comes from and utun1 is where all the traffic is once the vpn is connected



When i run sudo pfctl -e -f /etc/pf.conf i get an error




/etc/pf.conf:32: Rules must be in order: options, normalization,
queueing, translation, filtering pfctl: Syntax error in config file:
pf rules not loaded




Can anyone tell me why i'm getting this error? Am i using the nat command incorrectly?



FYI - i have been following the tutorial on this page https://www.xarg.org/2017/07/set-up-internet-sharing-on-mac-osx-using-command-line-tools/










share|improve this question







New contributor



user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0















    My iMac has software which connects to a remote VPN. It works well - but only that specific device.



    I now want to allow other devices on my network to access the same VPN connection via the iMac. The reason for doing this is because my phone cannot connect to the VPN itself as it does not support the OpenVPN protocol.



    I have enabled port forwarding with: sysctl -w net.inet.ip.forwarding=1



    I have tried to add the following to line 32 in my /etc/pf.conf file: nat on utun1 from en0:network to any -> (utun1) where en0 is my ethernet port that the internet comes from and utun1 is where all the traffic is once the vpn is connected



    When i run sudo pfctl -e -f /etc/pf.conf i get an error




    /etc/pf.conf:32: Rules must be in order: options, normalization,
    queueing, translation, filtering pfctl: Syntax error in config file:
    pf rules not loaded




    Can anyone tell me why i'm getting this error? Am i using the nat command incorrectly?



    FYI - i have been following the tutorial on this page https://www.xarg.org/2017/07/set-up-internet-sharing-on-mac-osx-using-command-line-tools/










    share|improve this question







    New contributor



    user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0












      0








      0








      My iMac has software which connects to a remote VPN. It works well - but only that specific device.



      I now want to allow other devices on my network to access the same VPN connection via the iMac. The reason for doing this is because my phone cannot connect to the VPN itself as it does not support the OpenVPN protocol.



      I have enabled port forwarding with: sysctl -w net.inet.ip.forwarding=1



      I have tried to add the following to line 32 in my /etc/pf.conf file: nat on utun1 from en0:network to any -> (utun1) where en0 is my ethernet port that the internet comes from and utun1 is where all the traffic is once the vpn is connected



      When i run sudo pfctl -e -f /etc/pf.conf i get an error




      /etc/pf.conf:32: Rules must be in order: options, normalization,
      queueing, translation, filtering pfctl: Syntax error in config file:
      pf rules not loaded




      Can anyone tell me why i'm getting this error? Am i using the nat command incorrectly?



      FYI - i have been following the tutorial on this page https://www.xarg.org/2017/07/set-up-internet-sharing-on-mac-osx-using-command-line-tools/










      share|improve this question







      New contributor



      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      My iMac has software which connects to a remote VPN. It works well - but only that specific device.



      I now want to allow other devices on my network to access the same VPN connection via the iMac. The reason for doing this is because my phone cannot connect to the VPN itself as it does not support the OpenVPN protocol.



      I have enabled port forwarding with: sysctl -w net.inet.ip.forwarding=1



      I have tried to add the following to line 32 in my /etc/pf.conf file: nat on utun1 from en0:network to any -> (utun1) where en0 is my ethernet port that the internet comes from and utun1 is where all the traffic is once the vpn is connected



      When i run sudo pfctl -e -f /etc/pf.conf i get an error




      /etc/pf.conf:32: Rules must be in order: options, normalization,
      queueing, translation, filtering pfctl: Syntax error in config file:
      pf rules not loaded




      Can anyone tell me why i'm getting this error? Am i using the nat command incorrectly?



      FYI - i have been following the tutorial on this page https://www.xarg.org/2017/07/set-up-internet-sharing-on-mac-osx-using-command-line-tools/







      vpn






      share|improve this question







      New contributor



      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 17 mins ago









      user293932user293932

      1




      1




      New contributor



      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      user293932 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          user293932 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539107%2froute-lan-traffic-through-vpn-gateway%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          user293932 is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          user293932 is a new contributor. Be nice, and check out our Code of Conduct.













          user293932 is a new contributor. Be nice, and check out our Code of Conduct.












          user293932 is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539107%2froute-lan-traffic-through-vpn-gateway%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...