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

    Captive portal da farklı dns kullanan bilgisayarlarda login gelmemesi (çözüldü)

    Scheduled Pinned Locked Moved Turkish
    41 Posts 11 Posters 24.2k Views
    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
      mbunal
      last edited by

      ihtiyacı olana yeni sürümde eklenmesi gekeren kod parçası:

      $cprules .= "# Rules to allow DNS queries to external servers from unauthenticated users\n";
      $cprules .= captiveportal_create_ipfw_rule("add", $rulenum,
      "allow udp from any to any 53 out");
      $cprules .= captiveportal_create_ipfw_rule("add", $rulenum,
      "allow tcp from any to any 53 out");
      $cprules .= captiveportal_create_ipfw_rule("add", $rulenum,
      "allow udp from any to any 53 in keep-state");
      $cprules .= captiveportal_create_ipfw_rule("add", $rulenum,
      "allow tcp from any to any 53 in keep-state");
      

      peki nereye eklenecek? tabiiki aşağıdaki kodun hemen üstüne:

      $cprules .= "# redirect non-authenticated clients to captive portal\n";
      $cprules .= captiveportal_create_ipfw_rule("add", $rulenum,
      "fwd 127.0.0.1,{$listenporthttp} tcp from any to any dst-port 80 in");
      

      herkese iyi eğlenceler...

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