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

Topics - marcri

#1
German - Deutsch / Hardware-Tausch?
February 14, 2020, 04:23:58 PM
Moin moin,

möchte gern meine Hardware austauschen ohne neu zu installieren. Server sind fast baugleich, also der selbe Chipsatz, allerdings Xeon statt i3 und mehr Schnittstellen onboard. Eigentlich könnte ich doch die SSDs (gmirror) einfach umbauen und ggf die MAC-Adressen in der Config anpassen, oder? Erfahrungen?

(Möchte nicht unbedingt neu installieren weil ich an verschiedenen Stellen Anpassungen gemacht hab)

#2
German - Deutsch / OPNsense Business Edition
December 02, 2019, 03:01:19 PM
Hallo Forum,

wer nutzt denn von Euch die OPNsense Business Edition? Welche Features, PlugIns etc gegenüber der freien Version sind denn dabei? Irgendwie gibt es kaum Informationen. Auch über OPNcentral finde ich nichts...


VG
Marc
#3
Hi,

I try to create a package for check-mk-agent and need to create an inetd-service. How can I add the inetd-config to the system without interfering in any way with other inetd-configs? And how can I start inetd at boot? I don't want to break NAT reflection setups, NAT reflection rules seem to use inetd :-(

Is there a (correct) way to modify /etc/services and /etc/hosts.allow during installation of my plugin?

Thanks
Marc
#4
German - Deutsch / Entwicklung für Dummies
August 30, 2019, 12:13:40 PM
Hallo zusammen,

gleich vorweg: ich bin wohl zu blöd für die existierenden Anleitungen.

Ich habe ein paar Modifikationen auf meinen OPNSense-Geräten durchgeführt. Natürlich muss ich diese Dinge nach einem Upgrade wieder manuell nachziehen. Um es ab jetzt "richtig" zu machen, brauche ich eine Anleitung für doofe, wie ich z.B. ein Verzeichnis (z.B. /opt/Check_mk) in ein Paket bekomme. Das Paket soll also einfach nur Ordner/Dateien beinhalten.
Als Steigerung dazu würde ich gern wissen, wie ich z.B. die Dateien /etc/hosts.allow, /etc/inetd.conf und /etc/services um ein paar Zeilen erweitern kann, aus einem Paket heraus natürlich.
Dann wäre noch cool, wenn mit jemand erklärt, wie ich opnsense dazu bringe den Dienst inetd beim booten zu starten... das natürlich auch via Paket.

Das alles habe ich von Hand hinbekommen, aber wie gesagt, nach einem Update ist nur noch die Hälfte da. Und ja, ich habe mir die Beispiele und auch HelloWorld angeschaut - auch mehrmals! Liegt wohl an mir ;)
#5
Hallo,

ich brauche unbedingt die Möglichkeit meine IPv6 im DNS zu hinterlegen. Habe je einen Account bei dyn.com und ovh.de, doch bei beiden wird nur die IPv4-Adresse registriert. Es scheint, als wenn OPNSense das nicht unterstützt.
Welche Möglichkeiten gibt es sonst noch? Soll ich das per curl machen? Hat ggf jemand ein fertiges Script (IP-Adresse auslesen etc)?

VG
Marc


[edit]
Problem gelöst, mache es jetzt über "custom (v6)" ;)
#6
19.1 Legacy Series / backup (again)
June 29, 2019, 07:47:22 PM
Hi,

yes I know, the only thing I need to backup is the config.xml.  >:(

But that is not always true. I need custom files from squid, sensei, suricata, unbound and all the stuff like check_mk, statistics, cronjobs, installed pkgs etc etc...

So again the question: what is the best way to backup the complete system? I'm a linux user, so I used rsync to a remote system to keep my files. But is it possible to restore a complete system with rsync like under linux? Or should i just dump with dd???
#7
Hi,
from time to time I have to transfer a lot of data from one local network to another. I don't want to disable IDS/IPS on these interfaces, but the throughput is very low (400Mbit / 1Gbit). Is it possible to bypass NFS (TCP/2049)? I haven't found any hints on how to write a rule that leaves Suricatas ruleset very early.

#8
German - Deutsch / Debuggen von configd?
June 11, 2019, 12:26:31 PM
Hallo,

ich habe seit ein paar Tagen einen Fehler bei der Generierung der squid.conf. Ich habe mit die config.xml mehrmals komplett durchgelesen, Backups wiederhergestellt und versucht Schritt für Schritt durch die Python-Skripte zu schauen. Ich habe keinerlei Doku über Debug-Möglichkeiten gefunden. Habt ihr Tipps?

Hier der Fehler:
configd.py: [f0e70ff1-4291-4b9d-812d-96375f43fb9e] Inline action failed with OPNsense/Proxy OPNsense/Proxy/squid.conf 'int' object has no attribute 'lstrip' at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 509, in execute return ph_inline_actions.execute(self, inline_act_parameters) File "/usr/local/opnsense/service/modules/ph_inline_actions.py", line 51, in execute filenames = tmpl.generate(parameters) File "/usr/local/opnsense/service/modules/template.py", line 338, in generate raise render_exception Exception: OPNsense/Proxy OPNsense/Proxy/squid.conf 'int' object has no attribute 'lstrip'


Und hier der config.xml-Teil:
    <proxy version="1.0.3">
      <general>
        <enabled>1</enabled>
        <icpPort/>
        <logging>
          <enable>
            <accessLog>1</accessLog>
            <storeLog>0</storeLog>
          </enable>
          <ignoreLogACL/>
          <target/>
        </logging>
        <alternateDNSservers>192.168.100.1,192.168.200.254</alternateDNSservers>
        <dnsV4First>1</dnsV4First>
        <forwardedForHandling>off</forwardedForHandling>
        <uriWhitespaceHandling>strip</uriWhitespaceHandling>
        <useViaHeader>1</useViaHeader>
        <suppressVersion>1</suppressVersion>
        <VisibleEmail>xxx@yyy.de</VisibleEmail>
        <VisibleHostname>opn.intra.xxx</VisibleHostname>
        <cache>
          <local>
            <enabled>1</enabled>
            <directory>/var/squid/cache</directory>
            <cache_mem>6144</cache_mem>
            <maximum_object_size>10</maximum_object_size>
            <size>4096</size>
            <l1>16</l1>
            <l2>256</l2>
            <cache_linux_packages>1</cache_linux_packages>
            <cache_windows_updates>0</cache_windows_updates>
          </local>
        </cache>
        <traffic>
          <enabled>0</enabled>
          <maxDownloadSize>2048</maxDownloadSize>
          <maxUploadSize>1024</maxUploadSize>
          <OverallBandwidthTrotteling>1024</OverallBandwidthTrotteling>
          <perHostTrotteling>256</perHostTrotteling>
        </traffic>
        <parentproxy>
          <enabled>0</enabled>
          <host/>
          <enableauth>0</enableauth>
          <user>username</user>
          <password>password</password>
          <port/>
          <localdomains/>
          <localips/>
        </parentproxy>
      </general>
      <forward>
        <interfaces>lan,opt1,opt3,opt2,opt4</interfaces>
        <port>8080</port>
        <sslbumpport>8083</sslbumpport>
        <sslbump>1</sslbump>
        <sslurlonly>0</sslurlonly>
        <sslcertificate>5cef89dc61bc8</sslcertificate>
        <sslnobumpsites>.risse-it.de,.stormdesignz5.de</sslnobumpsites>
        <ssl_crtd_storage_max_size>48</ssl_crtd_storage_max_size>
        <sslcrtd_children>10</sslcrtd_children>
        <snmp_enable>1</snmp_enable>
        <snmp_port>3401</snmp_port>
        <snmp_password>public</snmp_password>
        <ftpInterfaces>lan,opt1,opt3,opt2,opt4</ftpInterfaces>
        <ftpPort>2121</ftpPort>
        <ftpTransparentMode>1</ftpTransparentMode>
        <addACLforInterfaceSubnets>1</addACLforInterfaceSubnets>
        <transparentMode>1</transparentMode>
        <acl>
          <allowedSubnets>192.168.0.0/16</allowedSubnets>
          <unrestricted>127.0.0.1</unrestricted>
          <bannedHosts/>
          <whiteList>.paypal.com,.risse-it.de</whiteList>
          <blackList/>
          <browser/>
          <mimeType/>
          <safePorts>80:http,21:ftp,443:https,70:gopher,210:wais,1025-65535:unregistered ports,280:http-mgmt,488:gss-http,591:filemaker,777:multiling http,81:http,82:http</safePorts>
          <sslPorts>443:https,8443:https</sslPorts>
          <remoteACLs>
            <blacklists>
              <blacklist uuid="d60cc68f-cae0-4e58-805a-b27feb0f2594">
                <enabled>1</enabled>
                <filename>Crypto</filename>
                <url>ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/cryptojacking.tar.gz</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>0</sslNoVerify>
                <description>Crypto Blackist</description>
              </blacklist>
              <blacklist uuid="e78b82b7-62cb-4ce7-a0cf-65fc8463451d">
                <enabled>1</enabled>
                <filename>Publicite</filename>
                <url>ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/publicite.tar.gz</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>0</sslNoVerify>
                <description>Publicite Blackist</description>
              </blacklist>
              <blacklist uuid="7ad40fae-a844-4852-b58b-248fde605cbc">
                <enabled>1</enabled>
                <filename>Phishing</filename>
                <url>ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/phishing.tar.gz</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>0</sslNoVerify>
                <description>Phishing Blackist</description>
              </blacklist>
              <blacklist uuid="578922c9-4cf7-4c36-8245-8b6602d2b55e">
                <enabled>1</enabled>
                <filename>ads.acl</filename>
                <url>https://www.squidblacklist.org/downloads/squid-ads.acl</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>1</sslNoVerify>
                <description>ads</description>
              </blacklist>
              <blacklist uuid="b9e4a695-87bf-4bf3-a66e-8a1912c196c6">
                <enabled>1</enabled>
                <filename>malicious.acl</filename>
                <url>https://www.squidblacklist.org/downloads/squid-malicious.acl</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>1</sslNoVerify>
                <description>malicious</description>
              </blacklist>
              <blacklist uuid="0071e5d2-b20a-4f83-926a-750d003f7f20">
                <enabled>1</enabled>
                <filename>Shalla.lst</filename>
                <url>http://www.shallalist.de/Downloads/shallalist.tar.gz</url>
                <username/>
                <password/>
                <filter>adv,aggressive,alcohol,costtraps,dynamic,ringtones,spyware,tracker,warez,webphone,webtv</filter>
                <sslNoVerify>0</sslNoVerify>
                <description>shalla</description>
              </blacklist>
              <blacklist uuid="8397c0c7-9e82-4198-82db-8d87ef494bd8">
                <enabled>1</enabled>
                <filename>yoyo</filename>
                <url>http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml</url>
                <username/>
                <password/>
                <filter/>
                <sslNoVerify>1</sslNoVerify>
                <description>yoyo</description>
              </blacklist>
            </blacklists>
            <UpdateCron>6d4ca1ff-5b12-43d7-a070-5d41b1a8d7d9</UpdateCron>
          </remoteACLs>
        </acl>
        <icap>
          <enable>1</enable>
          <RequestURL>icap://[::1]:1344/avscan</RequestURL>
          <ResponseURL>icap://[::1]:1344/avscan</ResponseURL>
          <SendClientIP>1</SendClientIP>
          <SendUsername>0</SendUsername>
          <EncodeUsername>0</EncodeUsername>
          <UsernameHeader>X-Username</UsernameHeader>
          <EnablePreview>1</EnablePreview>
          <PreviewSize>1024</PreviewSize>
          <OptionsTTL>60</OptionsTTL>
          <exclude/>
        </icap>
        <authentication>
          <method/>
          <realm>OPNsense proxy authentication</realm>
          <credentialsttl>2</credentialsttl>
          <children>5</children>
        </authentication>
      </forward>
      <pac/>
    </proxy>
  </OPNsense>


#9
Hi,

no regeneration of file /usr/local/etc/squid/squid.conf after changing parameters.
configd.log:
Jun 10 09:26:31 opn configd.py: [a2dc90ee-a92e-4499-82b8-888893839274] Inline action failed with OPNsense/Proxy OPNsense/Proxy/squid.conf 'int' object has no attribute 'lstrip' at Traceback (most recent call last):   File "/usr/local/opnsense/service/modules/processhandler.py", line 509, in execute     return ph_inline_actions.execute(self, inline_act_parameters)   File "/usr/local/opnsense/service/modules/ph_inline_actions.py", line 51, in execute     filenames = tmpl.generate(parameters)   File "/usr/local/opnsense/service/modules/template.py", line 338, in generate     raise render_exception Exception: OPNsense/Proxy OPNsense/Proxy/squid.conf 'int' object has no attribute 'lstrip'
#10
Tutorials and FAQs / [solved] Custom link on menu
June 05, 2019, 08:31:12 PM
Hi,

I want to add a simple link to the menu. I'm not a developer and all the tutorials i found were pretty hard for me to understand. In fact, I  want to add a link to the sarg-reports and maybe some quicklinks to the service logs.

Best
Marc
#11
German - Deutsch / WebGUI / Seiten anpassen
June 02, 2019, 10:44:07 AM
Hallo Forum,

nach Jahren habe ich mal wieder OPNSense ausprobiert und bin bisher zufrieden. Zur WebGui habe ich allerdings noch ein paar Fragen:

- Kann ich irgendwie im Menü eigene Links hinzufügen (z.B. zu den sarg-reports)
- Kann man die Squid-Fehlerseiten anpassen, so dass sie auch nach einem Update bleiben
- kann ich das Logo austauschen?

Danke und vG
Marc