DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th July 2021
invicta invicta is offline
Port Guard
 
Join Date: Jul 2021
Posts: 16
Default how to open ports in pf.conf?

hello i am trying to follow this guide to hosting xmpp on openbsd but i cant figure out how to do this part

Unlock port on your firewall
Ports 5222 (for client to server - c2s) and 5269 (for server to server - s2s) are required so do not forget to open it on your pf.conf.

what do i put in my /etc/pf.conf to unlock these ports for c2s and s2s?
Reply With Quote
  #2   (View Single Post)  
Old 18th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Is the OpenBSD system to be provisioned acting as a router between networks, or is it an end-use platform? Is there a PF configuration already in use? If so, is it deployed as a "default allow" filter or is it a "default deny" filter?
Reply With Quote
  #3   (View Single Post)  
Old 18th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

FYI, there is a default pf.conf(5) configuration. It is a "default allow" configuration which blocks stateless inbound traffic, blocks remote inbound X Windows connections, and blocks the special userid _pbuild from using the network. This special userid is used only on systems that build packages from ports.
Reply With Quote
  #4   (View Single Post)  
Old 19th July 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default

Maybe, try, at least:

Code:
ip = "xxxx" # address ip of your server

# differents default block
(…)
block
pass out

pass in  on egress proto tcp from any to $ip port { 5222 5269 } 
pass out on egress proto tcp from $ip to any port 5269
(but, it's really minimalistic rules)
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open standard but not open access: Schematron author complains about ISO paywal J65nko News 0 20th June 2021 03:19 AM
80/tcp open http || 52869/tcp open unknown bsd007 OpenBSD Security 5 6th October 2018 05:22 PM
Got my ports tree deleted after attempting ports update bsdnotbdsm FreeBSD Ports and Packages 2 18th May 2014 01:58 PM
FreeBSD Complete ports thaw after ports freeze for 7.3 Release J65nko News 0 24th March 2010 11:46 PM
difference between rc.conf and loader.conf disappearedng FreeBSD General 5 3rd September 2008 05:54 AM


All times are GMT. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick