Re: PF rules to block out every IP from a given country
On Wed, 7 Dec 2022 at 08.55 Damian McGuckin wrote: > > Has anybody created rules such as this and if so, do you have an example? > > Stay safe - Damian > Check this Example: https://www.muntaza.id/pf/2020/02/03/pf-firewall-bagian-kedua.html I write in Indonesia, you can use Google Translate to read it. Thanks, Muhammad Muntaza bin Hatta >
Re: Wireless interface iwn0 becomes detached
On Fri, 30 Sep 2022 at 13.29 wrote: > I am seeing a periodic and unexplained loss of wireless connection on my > Thinkpad. > > According to ifconfig iwn0, after a period (roughly 30 mins) the > DHCP-obtained > IP is lost (status: no network, nwid ""), requiring a sh /etc/netstart > iwn0 to > get a new lease, or less frequently the interface simply disappears > altogether. > > Ping your gateway every minute, add to your cron: * * * * * /usr/bin/ping -c 3 192.0.2.1 > >
Support update
0 C Indonesia P Kalimantan Selatan T Banjarbaru Z 70724 O Consultant I Muhammad Muntaza bin Hatta A Jalan Kawamara, Komplek Citra Pesona Mandiri Asri, Landasan Ulin M muham...@muntaza.id U https://www.muntaza.id/openbsd B +62 853 4603 4273 X N Jasa Konsultan, Pelatihan, dan Instalasi Sistem Operasi OpenBSD sebagai Firewall dan Server. Berpengalaman lebih dari 10 tahun mengelola PF Firewall di OpenBSD.
Re: What do you use to generate invoices on OpenBSD?
On Sun, Dec 22, 2019, 08:54 Mikolaj Kucharski wrote: > Hi, > > Do you generate invoices on OpenBSD? What do you recommend? If you have > experience in more than one app, why did you chose one over the other? > If you use something open-source on other OS, let me know as well. If > you use some own written app, for generating invoices, I'm also > interested to hear, just to get an idea, which way people decide to go. > I use reportico https://www.reportico.org/site2/index.php -- Muhammad Muntaza > >
Support new
0 C Indonesia P South Kalimantan T Banjarbaru Z 70724 O Consultant I Muhammad Muntaza bin Hatta A Jalan Kawamara, Komplek Citra Pesona Mandiri Asri, Landasan Ulin M muham...@muntaza.id U https://www.muntaza.id/openbsd B +62 816 20 6441 X N OpenBSD Consulting, Training, Installation, Maintenance and Support for mid-size business. Over 10 years of experience with OpenBSD and PF firewall.
support new
0 C Indonesia P South Kalimantan T Banjarbau Z 70724 O Consultant I Muhammad Muntaza bin Hatta A Jalan Kawamara, Komplek Citra Pesona Mandiri Asri, Landasan Ulin M muham...@muntaza.id U https://www.muntaza.id/openbsd B +62 816 20 6441 X N OpenBSD Consulting, Training, Installation, Maintenance and Support for mid-size business. Over 10 years of experience with OpenBSD and PF firewall.
Re: Thinkpad T460s on lastest -snapshot, no Xorg
On Apr 16, 2017 7:23 AM, "Gregor Best" <g...@unobtanium.de> wrote: Hi Daniel, I have a laptop with a similar chipset. The issue is that the inteldrm(4) driver does not support Skylake devices at the moment. If you boot the machine EFI mode, efifb(4) should attach to the EFI frame buffer. This in turn allows you to use Xorg's wsfb driver with an /etc/X11/xorg.conf which looks like this: Section "Device" Identifier "default device" Driver "wsfb" EndSection Its work for my Netbook Asus E202S too. Thanks, Muhammad Muntaza
Re: Difference between 5.9 vs 5.7
On Apr 24, 2016 8:53 PM, "Mohammad BadieZadegan" <mbzade...@gmail.com> wrote: > > Hi everybody, Hi, > /home/user/.xinitrc[2]: startxfce4: not found $ echo $PATH $ which startxfce4 $ echo 'exec startxfce4' > ~/.xinitrc $ startx Muhammad Muntaza bin Hatta
Re: Python requirements.
On Apr 21, 2016 4:48 PM, "Jay Patel" <rockworl...@gmail.com> wrote: > > Hi Muhammad, Hi, > > I did fresh install of 5.9 amd64 and tried to run it , it shows me this error: > > django.core.exceptions.ImproperlyConfigured: ImportError djcelery: cannot import name _uuid_generate_random Chek your djcelery (django celery) installation. Muhammad Muntaza bin Hatta
Re: ifstated.conf for multiple links with failover
On Jan 25, 2012 5:39 PM, Indunil Jayasooriya induni...@gmail.com wrote: Hi, I want to setup ifstated for multiple links. My requirement is very simple. I have 2 links. one is ADSL and the other is leased-line. When both links are up, outgoing traffic should be balanced via both links. When ADSL is DOWN, outgoing traffic should go via Leased line When Leased line is DOWN, outgoing traffic should go via ADSL line. I am wrinting /etc/ifstated.conf file. But , I still haven't achieved it. Could you pls help me to solve this. www.openbsd.org/faq/pf/pools.html
Re: OpenOffice Base with HSQL
2011/6/21 Daniel Dickman didick...@gmail.com Do you only have the jre installed? Does it work if you install the jdk as well? I've installed a jdk but still could not use the HSQL DATABASE. $ pkg_info | grep jdk jdk-1.7.0.00beta122p0v0 Java2(TM) SE Dev Kit v1.7.0.00 Early Access b122 $ soffice javaldx: Could not find a Java Runtime Environment! Thanks, Muhammad Muntaza bin Hatta -- Indonesia http://muntaza.wordpress.com
Re: OpenOffice Base with HSQL
2011/6/20 Matthias Guedemann matthias.guedem...@ovgu.de $ echo $JAVA_HOME /usr/local/jre-1.7.0 $ echo $JAVACMD /usr/local/jre-1.7.0/bin/java ---8 What wrong with my installation? unsure. I do not know where OpenOffice looks exactly for java. Does it work if $JAVA_HOME/bin is in $PATH? regards I was set $JAVA_HOME/bin in my $PATH, but it not work. $ cat /home/muntaza/.profile # $OpenBSD: dot.profile,v 1.4 2005/02/16 06:56:57 matthieu Exp $ # # sh/ksh initialization PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/lib/libreoffice/ure/bin:/usr/local/jre-1.7.0/bin:. PKG_PATH=http://ftp.itb.ac.id/pub/OpenBSD/4.9/packages/i386/ JAVA_HOME=/usr/local/jre-1.7.0 JAVACMD=/usr/local/jre-1.7.0/bin/java PKG_CACHE=/home/muntaza/paket/ export PKG_CACHE JAVA_HOME JAVACMD PATH HOME TERM PKG_PATH $ $ which java /usr/local/jre-1.7.0/bin/java $ soffice javaldx: Could not find a Java Runtime Environment! Muhammad Muntaza bin Hatta -- Indonesia http://muntaza.wordpress.com
OpenOffice Base with HSQL
Hello, I can not use OpenOffice Base with HSQL in OpenBSD 4.9 error Could not find a Java Runtime Environment! $ soffice javaldx: Could not find a Java Runtime Environment! $ pkg_info | grep -e jre -e java -e openoffice javaPathHelper-0.3 helper script for launching java applications jre-1.7.0.00beta122p0v0 Java2(TM) SE Runtime Environment v1.7.0.00 Early Access b122 openoffice-3.3.0rc9v0 multi-platform productivity suite openoffice-java-3.3.0rc9v0 optional integration of OpenOffice java features $ echo $JAVA_HOME /usr/local/jre-1.7.0 $ echo $JAVACMD /usr/local/jre-1.7.0/bin/java $ dmesg | head -2 OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar 2 07:19:02 MST 2011 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP What wrong with my installation? Thanks, Muhammad Muntaza bin Hatta South Borneo, Indonesia -- http://muntaza.wordpress.com
Re: OpenOffice Base with HSQL
2011/6/20 Muhammad Muntaza m.munta...@gmail.com 2011/6/20 Matthias Guedemann matthias.guedem...@ovgu.de $ echo $JAVA_HOME /usr/local/jre-1.7.0 $ echo $JAVACMD /usr/local/jre-1.7.0/bin/java ---8 What wrong with my installation? unsure. I do not know where OpenOffice looks exactly for java. Does it work if $JAVA_HOME/bin is in $PATH? regards I was set $JAVA_HOME/bin in my $PATH, but it not work. $ cat /home/muntaza/.profile # $OpenBSD: dot.profile,v 1.4 2005/02/16 06:56:57 matthieu Exp $ # # sh/ksh initialization PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/lib/libreoffice/ure/bin:/usr/local/jre-1.7.0/bin:. PKG_PATH=http://ftp.itb.ac.id/pub/OpenBSD/4.9/packages/i386/ JAVA_HOME=/usr/local/jre-1.7.0 JAVACMD=/usr/local/jre-1.7.0/bin/java PKG_CACHE=/home/muntaza/paket/ export PKG_CACHE JAVA_HOME JAVACMD PATH HOME TERM PKG_PATH $ $ which java /usr/local/jre-1.7.0/bin/java $ soffice javaldx: Could not find a Java Runtime Environment! Hello, this is default config javasetting in my installation $ cat .openoffice.org/3/user/config/javasettings_OpenBSD_x86.xml ?xml version=1.0 encoding=UTF-8? !--This is a generated file. Do not alter this file!-- java xmlns=http://openoffice.org/2004/java/framework/1.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; enabled xsi:nil=true/enabled userClassPath xsi:nil=true/userClassPath vmParameters xsi:nil=true/vmParameters jreLocations xsi:nil=true/jreLocations javaInfo xsi:nil=true/javaInfo /java I start OpenOffice: $ soffice javaldx: Could not find a Java Runtime Environment! I was edit this file, with location of jre: $ cat .openoffice.org/3/user/config/javasettings_OpenBSD_x86.xml ?xml version=1.0 encoding=UTF-8? !--This is a generated file. Do not alter this file!-- java xmlns=http://openoffice.org/2004/java/framework/1.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; enabled xsi:nil=true/enabled userClassPath xsi:nil=true/userClassPath vmParameters xsi:nil=true/vmParameters jreLocations xsi:nil=true/jreLocations javaInfo xsi:nil=false autoSelect=false locationfile:///usr/local/jre-1.7.0/location version1.7.0/version features0/features requirements1/requirements /javaInfo /java with this setting, I start OpenOffice: $ soffice [Java framework] Error in function NodeJavaInfo::loadFromNode (elements.cxx). javaldx failed! Error in OpenOffice Base when I try to open my .odb file: 1) The connection to the data source New Database3 could not be established. 2) SQL Status: HY000 The connection to the external data source could not be established. No SDBC driver was found for the given URL. 3) A connection for the following URL was requested sdbc:embedded:hsqldb. I still can not use HSQL database with OpenOffice. Thanks, Muhammad Muntaza bin Hatta, South Borneo, Indonesia -- http://muntaza.wordpress.com
Re: pf rules
2011/4/17, gdrm g...@email.it: table terlarang persist file /etc/terlarang block in quick on re0 from terlarang in /etc/terlarang 10.0.0.0/8 192.168.0.0/16 xxx.xxx.xxx.xxx Muhammad Muntaza bin Hatta -- Indonesia http://muntaza.wordpress.com
Re: /dev/pf permission for squid 3.2.0.6 on openbsd 4.8
2011/4/8, Indunil Jayasooriya induni...@gmail.com: Hi list, I am trying to test squid 3.2.0.6 on OpenBSD 4.8 (amd64) in transparent mode. I can browse internet. But, I get the below error. 2011/04/08 17:43:11 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied 2011/04/08 17:43:11 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied 2011/04/08 17:44:20 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied 2011/04/08 17:44:53 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied 2011/04/08 17:44:54 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied 2011/04/08 17:44:55 kid1| Intercept.cc(305) PfInterception: PF open failed: (13) Permission denied Then, I did below steps. I got it from http://www.benzedrine.cx/transquid.html (PF founder's link) are the below 2 commnads okay for OpenBSD 4.8? # chgrp _squid /dev/pf # chmod g+rw /dev/pf but, for squid 2.7.9 on OpenBSD 4.8, I have the default. Pls see .I did NOT change /dev/pf # ls -al /dev/pf crw--- 1 root wheel 73, 0 Dec 17 16:33 /dev/pf any comments? -- Thank you Indunil Jayasooriya my squid and openbsd: in /etc/pf.conf: pass in quick on $int_if proto tcp from $localnet to any port 80 rdr-to lo0 port 3128 $ ls -l /dev/pf crw--- 1 root wheel 73, 0 Nov 28 12:40 /dev/pf in /etc/squid/squid.conf http_port 127.0.0.1:3128 transparent Muhammad Muntaza bin Hatta -- Indonesia http://muntaza.wordpress.com
Re: help gateway 4.8
* dhcpd ** # $OpenBSD: dhcpd.conf,v 1.2 2008/10/03 11:41:21 sthen Exp $ # # DHCP server options. # See dhcpd.conf(5) and dhcpd(8) for more information. # # Network:192.168.1.0/255.255.255.0 # Domain name:my.domain # Name servers: 192.168.1.3 and 192.168.1.5 # Default router: 192.168.1.1 # Addresses: 192.168.1.32 - 192.168.1.127 # option domain-name my.domain; option domain-name-servers 192.168.1.1; subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.1; range 192.168.0.32 192.168.0.127; } network 192.168.0.0/24 for client *** var_log_messages ** Dec 1 00:31:33 gateway dhcpd[21708]: Can't listen on xl1 - dhcpd.conf has no subnet declaration for 192.168.0.1. Dec 1 00:31:33 gateway dhcpd[21708]: No interfaces to listen on. Dec 1 00:31:33 gateway dhcpd[21708]: exiting. xl1: flags=8a43UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST mtu 1500 lladdr 00:60:97:be:ca:2a priority: 0 media: Ethernet autoselect (none) -- cable problem status: no carrier --- cable problem inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255 inet6 fe80::260:97ff:febe:ca2a%xl1 prefixlen 64 scopeid 0x2 thanks