OPNsense Forum

International Forums => German - Deutsch => Topic started by: tango38317 on May 19, 2016, 08:33:17 am

Title: Huawei E398 Dial In Problem nach 24 Std. Disconnect
Post by: tango38317 on May 19, 2016, 08:33:17 am
Hallo zusammen,

ich habe die Tage OPNsense installiert, mit DualWan, 1 x Dial In PPTP (aon.at) auf der Wan Schnittstelle und 1 x PPP (drei.at, Huawei E398) auf opt1.
Dual Wan lt. Anleitung eingerichtet, und hat die ersten 24 Std. auch perfekt funktioniert.
Nach 24 Std. werden beide Provider disconnected. Mit der PPTP Einwahl hat alles funktioniert, allerdings scheint es bei mir ein Problem mit dem Dial In des USB Modems nach 24 Std. zu geben. Habe daher einfach mal das Interface in der config deaktiviert und wieder aktiviert, dannach hatte ich im log File einige Fehler:

Kann mir jemand helfen beim debuggen/beheben oder hat jemand eine Idee wie ich das lösen kann?
danke


Quote
May 19 07:52:03 opnsense: /interfaces.php: Creating rrd update script
May 19 07:52:03 opnsense: /usr/local/etc/rc.filter_configure_sync: Could not find IPv4 gateway for interface (opt1).
May 19 07:52:03 opnsense: /usr/local/etc/rc.filter_configure_sync: Could not find IPv4 gateway for interface (opt1).
May 19 07:52:03 opnsense: /usr/local/etc/rc.filter_configure_sync: Could not find IPv4 gateway for interface (opt1).
May 19 07:52:02 configd.py: [10b2e222-58fc-4838-a4f8-75746b1b61ea] Reloading filter
May 19 07:52:02 opnsense: /interfaces.php: Adding static route for monitor through 188.22.247.254
May 19 07:52:02 opnsense: /interfaces.php: Removing static route for monitor 8.8.8.8
May 19 07:51:59 opnsense: /usr/local/etc/rc.dyndns.update: Dynamic DNS () There was an error trying to determine the public IP for interface - opt1(ppp1). Probably interface is not a WAN interface.
May 19 07:51:58 opnsense: /usr/local/etc/rc.dyndns.update: Dynamic DNS () There was an error trying to determine the public IP for interface - opt1(ppp1). Probably interface is not a WAN interface.
May 19 07:51:57 configd.py: [9d7c1e20-3982-4415-a9ab-d203fe2f26ad] updating dyndns opt1
May 19 07:51:53 opnsense: /interfaces.php: The command `/sbin/ifconfig '' mtu '1492'' failed to execute
May 19 07:51:52 opnsense: /interfaces.php: The command `/usr/local/sbin/ifinfo ''' failed to execute
May 19 07:51:52 opnsense: /interfaces.php: Starting 3gstats.php on device 'cuaU0.3' for interface 'opt1'
May 19 07:51:52 kernel: ng1: changing name to 'ppp1'
May 19 07:51:52 opnsense: /interfaces.php: The command '/sbin/ifconfig 'ppp1' inet6 -accept_rtadv' returned exit code '1', the output was 'ifconfig: interface ppp1 does not exist'
May 19 07:51:33 opnsense: /interfaces.php: Creating rrd update script
May 19 07:51:32 configd.py: [cf8895e8-fc4a-4274-8ff0-d63018f15b89] Reloading filter
May 19 07:51:32 opnsense: /interfaces.php: Adding static route for monitor through 188.22.247.254
May 19 07:51:32 opnsense: /interfaces.php: Removing static route for monitor 8.8.8.8
May 19 07:50:02 configd.py: [d2c4d7c7-4b22-47d8-8b77-75ff3ce07088] show system activity
May 19 07:49:07 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:49:06 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:56 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:56 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:45 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:44 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:34 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:33 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:23 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:22 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:12 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute
May 19 07:48:11 opnsense: /getstats.php: The command `/usr/local/sbin/ifinfo 'ppp1'' failed to execute

Title: Re: Huawei E398 Dial In Problem nach 24 Std. Disconnect
Post by: franco on May 19, 2016, 08:46:12 am
Hallöchen,

ppp1 ist nicht im System, also entweder ist der Name falsch oder es existiert gar nicht... was sagt denn:

# ifconfig -l

wenn das passiert ist?


Grüße
Franco
Title: Re: Huawei E398 Dial In Problem nach 24 Std. Disconnect
Post by: tango38317 on May 19, 2016, 09:12:17 am
Hallo franco,

das war schnell  :D

Hier mal der Output:

root@fw:~ # ifconfig -l
re0 ath0 pflog0 pfsync0 lo0 enc0 ue0 pptp0 ppp1

Grüße
Chris

EDIT: hab mal auf das neueste Build upgedatet (16.1.8 auf 16.1.14) restarted und werds mal beobachten.
Title: Re: Huawei E398 Dial In Problem nach 24 Std. Disconnect
Post by: franco on May 19, 2016, 09:37:40 pm
Hi Chris,

Jetzt ist es wieder im System, hmm... vielleicht hilft auch ein dmesg Output nach dem Zwischenfall

# dmesg

Das ist allerdings nicht gut, dann geht das Device auch wirklich aus dem Sichtfeld: usbconfig -u3 -a 2 reset

Es gibt für PPP (In den Interface Settings bei Advanced) auch einen periodischen Reset um die Zwangstrennung und eventuell das verhalten zu umgehen.

EDIT: Periodische Zurücksetzung gibt es im moment nur für PPPoE, könnte man aber überlegen zu portieren.

Wenn es USB ist kann auch ein Wackler das Device entfernen oder es wechselt auf ppp0, das ist mir auch schon passiert mit meinem.


Grüße
Franco
Title: Re: Huawei E398 Dial In Problem nach 24 Std. Disconnect
Post by: tango38317 on May 27, 2016, 10:43:41 am
Hallo,

hab opnsense upgedatet, hat leider keine änderung gebracht. ppp am opt1 hat immer noch probleme nach einem disconnect. hab meine configuration geändert und ppp auf das wan port gehängt und pptp auf opt1 - und siehe da, das ppp interface über 3g überlebt den 24 std. disconnect, und wählt sich nach dem disconnect, bzw auch nach anderen disconnects wieder ein!? ist beim erstellen eines 2ten wan interfaces (opt1) etwas zu beachten? ev irgendwelche "port" regeln welche vom wan interace übernommen werden müssen?

sg