Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - agriff

#1
Figured it out in the end (all answers are on Google, if you only know what to search for). For reference, in case anyone else needs to do this.


  • Select Interfaces -> WAN from the GUI
  • Select Advanced under  DHCP client configuration
  • In the Option Modifiers box add supersede dhcp-lease-time xxx
  • Where xxx is your desired lease time in seconds. dhclient will attept to renew when 50% of the lease time has elapsed.
#2
Hi,

My ISP's DHCP server has very long leases (~70 hours). However, if the cable modem is power-cycled or otherwise goes through a reset I need to re-request in order to get connectivity back. And it seems that OPNSense won't do this until the lease is running down. So I'm forced to manually intervene and bounce the WAN interface.

Is there someway to override the lease time so I can get opnsense to renew more frequently? Or alternatively trigger a renewal when the gateway goes unreachable?

Thanks,

Alan
#3
20.7 Legacy Series / Re: Configure RTL8188CE Wifi Adapter
September 22, 2020, 11:08:09 PM
To answer my own question, it appears to be a bug.

https://github.com/opnsense/core/blob/cf1f4e00b9a85332a4bd71604aa6086bc8ad3b91/src/etc/inc/interfaces.inc#L96

The realtek device name, rtwn, is missing from the wireless regex. I manually edited this on my installation and everything started working.
#4
20.7 Legacy Series / Re: SSH not working from LAN.
September 22, 2020, 12:01:18 PM
PuTTY 0.60 is ancient (released 2007-04-29) it won't support the latest ciphers. Hence failing during ssh_exchange_identification. Upgrade to a newer version and retry.
#5
20.7 Legacy Series / Configure RTL8188CE Wifi Adapter
September 22, 2020, 11:13:58 AM
Hi,

New to OPNsense and trying it out on an old Shuttle XS35v2 I had lying around.

I'm trying to make the LAN available over the internal Wifi adapter, but can't get it to work.

The driver is loaded

rtwn0@pci0:3:0:0:   class=0x028000 card=0x817610ec chip=0x817610ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8188CE 802.11b/g/n WiFi Adapter'
    class      = network


I can manaully clone the device on the console and show caps reports the HOSTAP capability.

root@OPNsense: ~ # ifconfig wlan0 create wlandev rtwn0 wlanmode hostap
root@OPNsense: ~ # ifconfig wlan0 list caps
drivercaps=591c541<STA,FF,IBSS,HOSTAP,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,WME>
cryptocaps=b<WEP,TKIP,AES_COM>
htcaps=7002c<SHORTGI20>


But then I hit a dead end trying to get it configured within the GUI. If I destroy the cloned interface I have manually created then nothing shows up under Interfaces -> Wireless -> Devices. If I have the cloned interface created manually it does appear under Interfaces -> Wireless -> Devices, but if I try to add it I get an error,

"Error creating interface with mode Infrastructure (BSS). The wlan0 interface may not support creating more clones with the selected mode."

Am I doing something wrong here, or is my hardware just not supported?

Thanks,

Alan