Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Forward UDP to second LAN interface

  1. #11
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,643
    Distro
    Xubuntu Development Release

    Re: Forward UDP to second LAN interface

    I think marking and routing is a reasonable thing to do. I've done it before, marking based on source address in my case, and also using SNAT.

    Another possibility would be to apply rules based on source interface rather than by IP addresses. So packets arriving on the LAN that you don't have a local route for (i.e. not for yourself) use the wan table. It's probably a good idea to filter as well, or you will be letting the whole LAN use you as a bypass.

  2. #12
    Join Date
    Apr 2019
    Beans
    9

    Re: Forward UDP to second LAN interface

    Another possibility would be to apply rules based on source interface rather than by IP addresses

    May i ask you to specify that a little? i understand what you mean, but missing the idea where i can set rules for a source-interface.

  3. #13
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,643
    Distro
    Xubuntu Development Release

    Re: Forward UDP to second LAN interface

    man ip-rule
    look for iif just below from and to.
    e.g.
    Code:
    ip rule add priority 50 iif ens192 table rt_wan
    I'm not sure which I prefer. iif is simpler but a bit of a blunt instrument - fwmark is more precise and surgical.
    Last edited by The Cog; 1 Week Ago at 09:57 PM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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