Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dev-id/085dd2aae4913e552859fd2111b30bcc to your computer and use it in GitHub Desktop.

Select an option

Save dev-id/085dd2aae4913e552859fd2111b30bcc to your computer and use it in GitHub Desktop.

Revisions

  1. @jovimon jovimon revised this gist Jan 3, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    ```
    1. Download latest [Realtek network driver](http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false).
    1. Download latest [Realtek network driver](https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software) (you need to input an email address).
    1. Uncompress driver:
    ```
    @@ -26,7 +26,7 @@
    1. Copy the file _if_re.ko_ to the _/boot/kernel_ folder in pfSense device.
    `scp if_re.ko root@<pfSense device IP>`
    `scp if_re.ko root@<pfSense device IP>:/boot/kernel`
    1. Change file permissions in _if_re.ko_ file accessing through SSH to pfSense.
  2. @jovimon jovimon revised this gist Apr 16, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`
    To: `#include "if_rereg.h"`
    1. Copy the file _if_re.ko_ to the _/boot/kernel_ folder in pfSense device.
  3. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    1. Download [FreeBSD 11.1 VMDK]( https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz) and create a VM with it as HDD.

    1. Get FreeBSD source tree and uncompress it to _/usr/src_:
    1. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to _/usr/src_:
    ```
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
  4. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@
    1. Reboot pfSense.
    1. After restart, verify if module is installed through ssh. Example execution:
    1. After restart, verify if module is installed through ssh with _kldstat_. Example execution:
    ```
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    Id Refs Address Size Name
  5. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    1. Download [FreeBSD 11.1 VMDK]( https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz) and create a VM with it as HDD.

    1. Get FreeBSD source tree and uncompress it to /usr/src:
    1. Get FreeBSD source tree and uncompress it to _/usr/src_:
    ```
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    @@ -18,23 +18,23 @@
    cd rtl_bsd_drv_v194.01
    make
    ```
    1. If the last command fails, change the following line in file if_re.c
    1. If the last command fails, change the following line in file _if_re.c_
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`
    1. Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
    1. Copy the file _if_re.ko_ to the _/boot/kernel_ folder in pfSense device.
    `scp if_re.ko root@<pfSense device IP>`
    1. Change file permissions in if_re.ko file accessing through SSH to pfSense.
    1. Change file permissions in _if_re.ko_ file accessing through SSH to pfSense.
    `chmod 555 /boot/kernel/if_re.ko`
    1. Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    1. Modify _/boot/loader.conf.local_ file and add the following line at the end of the file: `if_re_load="YES"`
    - Through console: `vi /boot/loader.conf.local`
    - Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    - Through web: _Diagnostics > Edit File_ and click _Load_. When finished editing click _Save_.
    1. Reboot pfSense.
  6. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -33,8 +33,8 @@
    `chmod 555 /boot/kernel/if_re.ko`
    1. Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    ** Through console: `vi /boot/loader.conf.local`
    ** Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    - Through console: `vi /boot/loader.conf.local`
    - Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    1. Reboot pfSense.
  7. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,9 @@
    make
    ```
    1. If the last command fails, change the following line in file if_re.c
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`
    1. Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
    @@ -31,8 +33,8 @@
    `chmod 555 /boot/kernel/if_re.ko`
    1. Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    - Through console: `vi /boot/loader.conf.local`
    - Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    ** Through console: `vi /boot/loader.conf.local`
    ** Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    1. Reboot pfSense.
  8. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -19,10 +19,8 @@
    make
    ```
    1. If the last command fails, change the following line in file if_re.c
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`
    1. Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
  9. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    Based on:
    * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/
    ### How to compile and install latest realtek network driver in pfSense 2.4.x (FreeBSD 11.1)

    1. Download [FreeBSD 11.1 VMDK]( https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz) and create a VM with it as HDD.

    @@ -41,10 +39,14 @@ Based on:
    1. Reboot pfSense.
    1. After restart, verify if module is installed through ssh. Example execution:
    ```
    ```
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    Id Refs Address Size Name
    1 7 0xffffffff80200000 2c3ea98 kernel
    2 1 0xffffffff82e3f000 80900 if_re.ko
    3 1 0xffffffff83021000 46c6 cryptodev.ko
    ```
    ```
    Based on:
    - https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    - https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/
  10. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 8 additions and 12 deletions.
    20 changes: 8 additions & 12 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,28 +2,24 @@ Based on:
    * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/

    1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD:

    https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz
    1. Download [FreeBSD 11.1 VMDK]( https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz) and create a VM with it as HDD.

    1. Get FreeBSD source tree and uncompress it to /usr/src:
    ```
    ```
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    ```
    1. Download Realtek latest driver:

    http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
    ```
    1. Download latest [Realtek network driver](http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false).
    1. Uncompress driver:
    ```
    ```
    tar xvzf 0007-rtl_bsd_drv_v194.01.tgz
    ```
    ```
    1. Make driver:
    ```
    ```
    cd rtl_bsd_drv_v194.01
    make
    ```
    ```
    1. If the last command fails, change the following line in file if_re.c
    From: `#include <dev/re/if_rereg.h>`
  11. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 13 additions and 13 deletions.
    26 changes: 13 additions & 13 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,49 +2,49 @@ Based on:
    * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/

    1.- Download FreeBSD 11.1 VMDK and create a VM with it as HDD:
    1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD:

    https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz

    2.- Get FreeBSD source tree and uncompress it to /usr/src:
    1. Get FreeBSD source tree and uncompress it to /usr/src:
    ```
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    ```
    3.- Download Realtek latest driver:
    1. Download Realtek latest driver:

    http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

    4.- Uncompress driver:
    1. Uncompress driver:
    ```
    tar xvzf 0007-rtl_bsd_drv_v194.01.tgz
    ```
    5.- Make driver:
    1. Make driver:
    ```
    cd rtl_bsd_drv_v194.01
    make
    ```
    5b.- If the last command fails, change the following line in file if_re.c
    1. If the last command fails, change the following line in file if_re.c

    From: `#include <dev/re/if_rereg.h>`

    To: `#include if_rereg.h"`

    6.- Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
    1. Copy the file if_re.ko to the /boot/kernel folder in pfSense device.

    `scp if_re.ko root@<pfSense device IP>`

    7.- Change file permissions in if_re.ko file accessing through SSH to pfSense.
    1. Change file permissions in if_re.ko file accessing through SSH to pfSense.

    `chmod 555 /boot/kernel/if_re.ko`

    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    * Through console: `vi /boot/loader.conf.local`
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    1. Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    - Through console: `vi /boot/loader.conf.local`
    - Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

    9.- Reboot pfSense.
    1. Reboot pfSense.

    10.- After restart, verify if module is installed through ssh. Example execution:
    1. After restart, verify if module is installed through ssh. Example execution:
    ```
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    Id Refs Address Size Name
  12. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 3 additions and 7 deletions.
    10 changes: 3 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,13 +38,9 @@ Based on:

    `chmod 555 /boot/kernel/if_re.ko`

    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file:

    `if_re_load="YES"`

    * Through console: `vi /boot/loader.conf.local`

    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file: `if_re_load="YES"`
    * Through console: `vi /boot/loader.conf.local`
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

    9.- Reboot pfSense.

  13. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -40,10 +40,11 @@ Based on:

    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file:

    `if_re_load="YES"`

    * Through console: `vi /boot/loader.conf.local`
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.
    `if_re_load="YES"`

    * Through console: `vi /boot/loader.conf.local`

    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

    9.- Reboot pfSense.

  14. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -25,17 +25,23 @@ Based on:
    make
    ```
    5b.- If the last command fails, change the following line in file if_re.c

    From: `#include <dev/re/if_rereg.h>`

    To: `#include if_rereg.h"`

    6.- Copy the file if_re.ko to the /boot/kernel folder in pfSense device.

    `scp if_re.ko root@<pfSense device IP>`

    7.- Change file permissions in if_re.ko file accessing through SSH to pfSense.

    `chmod 555 /boot/kernel/if_re.ko`

    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file:
    if_re_load="YES"

    `if_re_load="YES"`

    * Through console: `vi /boot/loader.conf.local`
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

  15. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 17 additions and 10 deletions.
    27 changes: 17 additions & 10 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -3,42 +3,49 @@ Based on:
    * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/

    1.- Download FreeBSD 11.1 VMDK and create a VM with it as HDD:

    https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz

    2.- Get FreeBSD source tree and uncompress it to /usr/src:
    ```
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz

    ```
    3.- Download Realtek latest driver:

    http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

    4.- Uncompress driver:
    ```
    tar xvzf 0007-rtl_bsd_drv_v194.01.tgz

    ```
    5.- Make driver:
    ```
    cd rtl_bsd_drv_v194.01
    make

    ```
    5b.- If the last command fails, change the following line in file if_re.c
    From: #include <dev/re/if_rereg.h>
    To: #include if_rereg.h"
    From: `#include <dev/re/if_rereg.h>`
    To: `#include if_rereg.h"`

    6.- Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
    scp if_re.ko root@<pfSense device IP>
    `scp if_re.ko root@<pfSense device IP>`

    7.- Change file permissions in if_re.ko file accessing through SSH to pfSense.
    chmod 555 /boot/kernel/if_re.ko
    `chmod 555 /boot/kernel/if_re.ko`

    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file:
    if_re_load="YES"
    * Through console: vi /boot/loader.conf.local
    * Through console: `vi /boot/loader.conf.local`
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

    9.- Reboot pfSense.

    10.- After restart, verify if module is installed through ssh. Example execution:
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    ```
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    Id Refs Address Size Name
    1 7 0xffffffff80200000 2c3ea98 kernel
    2 1 0xffffffff82e3f000 80900 if_re.ko
    3 1 0xffffffff83021000 46c6 cryptodev.ko
    3 1 0xffffffff83021000 46c6 cryptodev.ko
    ```
  16. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Based on:
    # * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    # * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/
    Based on:
    * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/

    1.- Download FreeBSD 11.1 VMDK and create a VM with it as HDD:
    https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz
  17. @jovimon jovimon renamed this gist Jan 3, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  18. @jovimon jovimon revised this gist Jan 3, 2018. 1 changed file with 16 additions and 4 deletions.
    20 changes: 16 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -23,10 +23,22 @@
    From: #include <dev/re/if_rereg.h>
    To: #include if_rereg.h"

    6.- Copy the file if_re.ko to the pfSense device.
    6.- Copy the file if_re.ko to the /boot/kernel folder in pfSense device.
    scp if_re.ko root@<pfSense device IP>

    7.-
    7.- Change file permissions in if_re.ko file accessing through SSH to pfSense.
    chmod 555 /boot/kernel/if_re.ko

    8.-
    8.- Modify /boot/loader.conf.local file and add the following line at the end of the file:
    if_re_load="YES"
    * Through console: vi /boot/loader.conf.local
    * Through web: Diagnostics > Edit File and click Load. When finished editing click Save.

    9.-
    9.- Reboot pfSense.

    10.- After restart, verify if module is installed through ssh. Example execution:
    [2.4.2-RELEASE][[email protected]]/root: kldstat
    Id Refs Address Size Name
    1 7 0xffffffff80200000 2c3ea98 kernel
    2 1 0xffffffff82e3f000 80900 if_re.ko
    3 1 0xffffffff83021000 46c6 cryptodev.ko
  19. @jovimon jovimon created this gist Jan 2, 2018.
    32 changes: 32 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    # Based on:
    # * https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105
    # * https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/

    1.- Download FreeBSD 11.1 VMDK and create a VM with it as HDD:
    https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/amd64/Latest/FreeBSD-11.1-RELEASE-amd64.vmdk.xz

    2.- Get FreeBSD source tree and uncompress it to /usr/src:
    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz

    3.- Download Realtek latest driver:
    http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

    4.- Uncompress driver:
    tar xvzf 0007-rtl_bsd_drv_v194.01.tgz

    5.- Make driver:
    cd rtl_bsd_drv_v194.01
    make

    5b.- If the last command fails, change the following line in file if_re.c
    From: #include <dev/re/if_rereg.h>
    To: #include if_rereg.h"

    6.- Copy the file if_re.ko to the pfSense device.

    7.-

    8.-

    9.-