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

    Default gateway'i shell'den değiştirebilir miyim ?

    Scheduled Pinned Locked Moved Turkish
    3 Posts 3 Posters 795 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.
    • tuzsuzdeliT
      tuzsuzdeli
      last edited by

      Pfsense 2.3.4 kullanıyorum.
      İki tane ayrı internet bağlanrımız var.

      Sistemde squid kurulu olduğundan, web trafiği sadece default gateway üzerinden oluyor, burada loadbalance yapılamıyor.

      Gündüz belli bir saatten sonra default gateway'i değiştirme ihtiyacımız var.

      Normalde web arayüzünden System - Routing - Gateways altındaki gateaylerden birinde, Default Gateway kutucuğunu tıklayarak yaptığımız bu işlemi, komut satırından yapmak mümkün mü ?

      Böylece cron'a yazıp bu işi otomatik hale getirmek istiyorum.

      Ya da bu ihtiyacıma alternatif olarak ne yapabilirim ?

      Çözümün bir parçası değilsen, sorunun bir parçasısındır.

      1 Reply Last reply Reply Quote 0
      • K
        karakas
        last edited by

        Deneme sansim olmadi routing komutlari ile cozulebilir bir sorun gibi duruyor rc.conf dosyasina eklenmedigi surece pfsense her basladigindan gw degisebilir. Asagidaki ornekler isini gorebilir.

        https://www.freebsd.org/cgi/man.cgi?route

        EXAMPLES
            Add a default route to the network routing table. This will send all
            packets for destinations not available in the routing table to the
            default gateway at 192.168.1.1:

        route add -net 0.0.0.0/0 192.168.1.1

        A shorter version of adding a default route can also be written as:

        route add default 192.168.1.1

        Add a static route to the 172.16.10.0/24 network via the 172.16.1.1 gate-
            way:

        route add -net 172.16.10.0/24 172.16.1.1

        Change the gateway of an already established static route in the routing
            table:

        route change -net 172.16.10.0/24 172.16.1.2

        Display the route for a destination network:

        route show 172.16.10.0

        Delete a static route from the routing table:

        route delete -net 172.16.10.0/24 172.16.1.2

        Remove all routes from the routing table:

        route flush

        1 Reply Last reply Reply Quote 0
        • Q
          Qbilay
          last edited by

          Squid Advanced Options a

          tcp_outgoing_address 127.0.0.1

          ekleyip dener misiniz?

          @tuzsuzdeli:

          Pfsense 2.3.4 kullanıyorum.
          İki tane ayrı internet bağlanrımız var.

          Sistemde squid kurulu olduğundan, web trafiği sadece default gateway üzerinden oluyor, burada loadbalance yapılamıyor.

          Gündüz belli bir saatten sonra default gateway'i değiştirme ihtiyacımız var.

          Normalde web arayüzünden System - Routing - Gateways altındaki gateaylerden birinde, Default Gateway kutucuğunu tıklayarak yaptığımız bu işlemi, komut satırından yapmak mümkün mü ?

          Böylece cron'a yazıp bu işi otomatik hale getirmek istiyorum.

          Ya da bu ihtiyacıma alternatif olarak ne yapabilirim ?

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