Enable ports 80 (HTTP) and 443 (HTTPS) (2024)

By default, PaperCut NG/MF listens to ports 9191 and 9192 for HTTP and HTTPS communication respectively. These ports have been selected as they're generally unused by other applications. Because PaperCut NG/MF is a web application, you might want to have the interface available on the standard HTTP and HTTPS ports (80 and 443 respectively). One reason for doing so is to simplify URLs communicated verbally (as the user does not need to supply a port number).

The configuration procedure is different for each operating system. See below for instructions. Important: Before you begin, ensure no other applications (such as IIS, or Apache) are currently installed and using ports 80 or 443 on the server hosting PaperCut NG/MF.

IMPORTANT

The following directions detail how to enable port 80 in addition to port 9191. Enabling an additional port is recommended over changing the existing port. Port 9191 is also used for server-to-server and client-to-server communication so it's important that this port continue to be made available.

Also make sure you you enable the 80 and 443 firewall ports if users access PaperCut NG/MF across firewall devices.

Windows

  1. Open the file: [app-path]\server\server.properties

  2. Enable port 80 (and 443) by changing the appropriate settings from N to a Y. They should look like:

    server.enable-http-on-port-80=Y

    server.enable-https-on-port-443=Y

  3. Change the server port in all providers installed on your network. The server port is set in the print-provider.conf file in the provider directory.

  4. Change the server port in the User ClientThe User Client tool is an add-on that resides on a user's desktop. It allows users to view their current account balance via a popup window, provides users with the opportunity to confirm what they are about to print, allows users to select shared accounts via a popup, if administrators have granted access to this feature, and displays system messages, such as the "low credit" warning message or print policy popups. config file:

    [app-path]\client\config.properties.

    IMPORTANT

    If the client is installed locally on workstations, then change the config file on each workstation. On Linux/Unix systems, the server runs under the privilege of a non-root account. Some systems prevent non-root users from binding to ports lower than 1024. An alternate option is to use kernel level TCP port redirection (e.g. iptables).

  5. Restart the Application ServerAn Application Server is the primary server program responsible for providing the PaperCut user interface, storing data, and providing services to users. PaperCut uses the Application Server to manage user and account information, manage printers, calculate print costs, provide a web browser interface to administrators and end users, and much more.. (See Stop and start the Application Server).

  6. Test and ensure the web interface is working. e.g. http://[myserver]/admin

Linux

On Linux systems, only privileged programs that run as root can use ports under 1024. In line with security best practice PaperCut runs as a non-privileged user. To enable port 80 and 443, use iptables (or ipchains on old systems) to port-forward 80 to 9191. The following commands provide an example. Consult your distribution's documentation to see how to persist the iptables rules between system restarts:

/sbin/iptables -t nat -I PREROUTING --src 0/0 --dst <server_ip> \

-p tcp --dport 80 -j REDIRECT --to-ports 9191

/sbin/iptables -t nat -I PREROUTING --src 0/0 --dst <server_ip> \

-p tcp --dport 443 -j REDIRECT --to-ports 9192

(These commands would typically be placed in an rc init script or the iptables startup config script as provided by your distribution.)

When you are done, restart the Application Server. (See Stop and start the Application Server).

Mac

The approach on Mac systems is similar to Linux. With the release of Mac OS X 10.11 (El Capitan) and the inclusion of System Integrity Protection (SIP) modifications to /System/ are disabled by default and disabling this feature is not recommended. The following information works for Mac OS X 10.10. For Mac OS X 10.10 and later, the support for the IPFW firewall has been removed in favor of PF.

Mac OS X 10.10

From Mac OS X 10.10, you must use the pfctl command to modify the Mac firewall.

  1. Create the anchor file:

    sudo vi /etc/pf.anchors/com.papercut

  2. Modify the /etc/pf.anchors/com.papercut file by adding the following lines:

    rdr pass on lo0 inet proto tcp from any to self port 80 -> 127.0.0.1 port 9191

    rdr pass on en0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 9191

    rdr pass on en1 inet proto tcp from any to any port 80 -> 127.0.0.1 port 9191

  3. Test the anchor file:

    sudo pfctl -vnf /etc/pf.anchors/com.papercut

  4. Add the anchor file to the pf.conf file:

    sudo vi /etc/pf.conf

    Then add in the following lines under each corresponding section - e.g. the rdr-anchor line under the current rdr-anchor line, and the load anchor under the current load-anchor statement:

    rdr-anchor "port80"

    load anchor "port80" from "/etc/pf.anchors/com.papercut"

  5. Load the pf.conf file automatically at startup by editing the current daemon for pf:

    sudo vi /System/Library/LaunchDaemons/com.apple.pfctl.plist

    Then within the section detailing the program arguments <key>ProgramArguments</key>, add in an extra string with -e, which enables the config, as per:

    <string>pfctl</string>

    <string>-e</string>

    <string>-f</string>

    <string>/etc/pf.conf</string>

    Then save the file, exit and restart the server to test.

  6. To test this method manually (no restart required) you can use the pfctl command:

    sudo pfctl -ef /etc/pf.conf

    This loads and enables the pf.conf file, which then calls the com.papercut anchor file.

  7. Restart the Application Server. (See Stop and start the Application Server).

Mac OS X 10.9 and earlier

In Mac OS X 10.9 and earlier, one needs to use the ipfw command to modify the Mac firewall:

sudo /sbin/ipfw add 102 fwd 127.0.0.1,9191 tcp from any to any 80 in

See the ipfw man page for all the scary details!
Enable ports 80 (HTTP) and 443 (HTTPS) (2024)

FAQs

Enable ports 80 (HTTP) and 443 (HTTPS)? ›

To enable port 80 and 443, use iptables (or ipchains on old systems) to port-forward 80 to 9191 (HTTP) 9192/9195 (HTTPS). These commands would typically be placed in an rc init script or the iptables startup config script as provided by your distribution. When you are done, restart the Application Server.

Is it safe to open ports 80 and 443? ›

Summary. Opening port 80 on your firewall is no different than opening port 443, provided the web server is configured to redirect the traffic to a secure port. This also ensures users connecting on port 80 do not get connection errors.

What is HTTPS 443 vs HTTP 80? ›

Port 443 is encrypted, but port 80 is not, which is a crucial difference between the two. Port 80 is, by default, unencrypted to access internet pages, as HTTP is an insecure form of communication. Port 443 is secure because it uses HTTPS, a secure variant of port 80, to achieve the same objectives.

Does port 80 need to be open for HTTPS? ›

The security is not about the port, it is about a protocol. @Anatoly browsers support HTTPS over port 80, it is just that they don't default to it. The default port for HTTPS in browsers is 443, but you can override that in practically any browser.

Should I redirect port 80 to 443? ›

it's fine and common place to redirect 80 to 443. When port 80 is mentioned as a risk really this is a poor description of the actual risk of using a http non secure web server.

What ports are bad to have open? ›

These are the ports most targeted by attackers:
  • Ports 137 and 139 (NetBIOS over TCP) and 445 (SMB)
  • Port 22 (SSH)
  • Port 53 (DNS)
  • Port 25 (SMTP)
  • Port 3389 (remote desktop)
  • Ports 80, 443, 8080 and 8443 (HTTP and HTTPS)
  • Ports 20 and 21 (FTP)
  • Port 23 (Telnet)

How to check if port 80 and 443 are open? ›

  1. Port 443 is for secure http, Port 80 is normal unsecured http.
  2. So Port 443 is not an open Port 80.
  3. However if you asking how to check for either Port, the best way is a Port scanner. ...
  4. All will require a host name or IP to scan, and most should allow you to specify which port(s) you want to check.
Jan 24, 2021

Why is HTTP always port 80? ›

Port 80 was introduced by Tim Berners-Lee in 1991 in the HTTP 0.9 document. The document states that if there is no port assigned for HTTP connection, Port 80 is used by default. It connects you to the worldwide web (WWW). A user, with the help of this port, can connect to webpages available on the internet.

Do I need to open port 443 for HTTPS? ›

In a world where secure internet use is no longer a luxury but a necessity, understanding the role of Port 443 is essential. This port, crucial for online security, is the gateway for HTTPS traffic, ensuring that your private information remains just that — private.

How to access HTTP port 80? ›

How do you open port 80?
  1. Enter your router's IP address into your browser bar. Log in when prompted.
  2. Navigate to the "Port Forwarding" section and fill out the forwarding form.
  3. Check "Enabled" or "On" next to Port 80. Then, save your settings.
Mar 19, 2024

Is open port 80 a vulnerability? ›

HTTP and HTTPS (Ports 80, 443, 8080, and 8443): These hotly-targeted ports are used for HTTP and HTTPS protocols and are vulnerable to attacks such as cross-site scripting, SQL injections, cross-site request forgeries, and DDoS attacks.

What happens if port 80 is open? ›

Port 80 isn't inherently a security risk. However, if you leave it open and don't have the proper configurations in place, attackers can easily use it to access your systems and data. Unlike port 443 (HTTPS), port 80 is unencrypted, making it easy for cybercriminals to access, leak and tamper with sensitive data.

Is port 80 only for HTTP? ›

Port 80 is the port number assigned to commonly used internet communication protocol, Hypertext Transfer Protocol (HTTP). It is the default network port used to send and receive unencrypted web pages.

Why not to use port 80? ›

Port 80 Vs. 443. The most important thing to remember about port 80 vs 443 is that port 80 is unencrypted, and port 443 is encrypted. Port 80 is unencrypted because it is the default port for HTTP, an insecure transfer protocol used to retrieve web pages.

Is it safe to keep port 443 open? ›

Port 443 is important because it helps protect your data from being intercepted by cybercriminals. When you use HTTPS, all communication between your browser and the website is encrypted. This means that even if someone were to intercept your traffic, they wouldn't be able to read it.

How do I allow traffic to port 443? ›

Select “TCP” > “Specific local ports,” and type in “443” next to it. In the “Action” window, select “Allow the connection” and click “Next.” In the “Profile” window, choose “Domain” > “Private,” and click “Next.”

Is it safe to have port 443 open? ›

Whether or not you should open port 443 depends on your specific needs. If you want to access a website or service that uses HTTPS, port 443 should be open. Additionally, if you run a web server that uses HTTPS, you should ensure port 443 is enabled so that users can connect to your server securely.

Is exposing port 80 safe? ›

Therefore, there is no problem opening port 80 if your application is redirecting the request instead of displaying the log in page. You application is safe if you see a status code saying 301 Moved Permanently (or temporarily), indicating the request is getting redirected.

Top Articles
Euro Anleihen
Investing During a Recession: 3 Tech Stocks to Target | The Motley Fool
Best Pizza Novato
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Roblox Roguelike
Breaded Mushrooms
1970 Chevrolet Chevelle SS - Skyway Classics
Federal Fusion 308 165 Grain Ballistics Chart
DEA closing 2 offices in China even as the agency struggles to stem flow of fentanyl chemicals
[2024] How to watch Sound of Freedom on Hulu
World Cup Soccer Wiki
Mycarolinas Login
Bc Hyundai Tupelo Ms
C Spire Express Pay
Citymd West 146Th Urgent Care - Nyc Photos
Pittsburgh Ultra Advanced Stain And Sealant Color Chart
Craigslist Edmond Oklahoma
National Office Liquidators Llc
Kitty Piggy Ssbbw
Craigslist Free Stuff Santa Cruz
Aldi Süd Prospekt ᐅ Aktuelle Angebote online blättern
Me Cojo A Mama Borracha
Saatva Memory Foam Hybrid mattress review 2024
TBM 910 | Turboprop Aircraft - DAHER TBM 960, TBM 910
If you bought Canned or Pouched Tuna between June 1, 2011 and July 1, 2015, you may qualify to get cash from class action settlements totaling $152.2 million
Conan Exiles Sorcery Guide – How To Learn, Cast & Unlock Spells
Die 8 Rollen einer Führungskraft
Spectrum Outage in Queens, New York
Ups Drop Off Newton Ks
Ff14 Sage Stat Priority
Advance Auto Parts Stock Price | AAP Stock Quote, News, and History | Markets Insider
Persona 4 Golden Taotie Fusion Calculator
Craigslist Maryland Baltimore
Graphic Look Inside Jeffrey Dresser
Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
67-72 Chevy Truck Parts Craigslist
RALEY MEDICAL | Oklahoma Department of Rehabilitation Services
Gary Lezak Annual Salary
Uvalde Topic
Ig Weekend Dow
Free Crossword Puzzles | BestCrosswords.com
Tinfoil Unable To Start Software 2022
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
This Doctor Was Vilified After Contracting Ebola. Now He Sees History Repeating Itself With Coronavirus
American Bully Puppies for Sale | Lancaster Puppies
Hillsborough County Florida Recorder Of Deeds
Hdmovie2 Sbs
Rocket League Tracker: A useful tool for every player
Cryptoquote Solver For Today
Dmv Kiosk Bakersfield
Suzanne Olsen Swift River
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 6107

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.