LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2024, 12:17 PM   #1
grizdog
LQ Newbie
 
Registered: Jun 2008
Posts: 16

Rep: Reputation: 0
Port forwarding for a web server on a home desktop computer


Hello,

I have what seems like a pretty standard, or at least vanilla, home setup. A cable modem connects to an Asus RT AC68-U, that has a wired connection to my desktop computer (Pop-OS 22.04) and serves everything else via WIFI. I have firewalls enabled on both the router and the desktop computer.

I have served a very small website from my desktop machine for decades. The configuration has changed many times, and I feel like I have the desktop firewall configured correctly, although I welcome any comments - I did run sudo ufw allow 'Apache'

I am unsure about the router, however. I figure I need to do port forwarding to make a hole to serve http, but I don't know how to do it, and the manual for the router is not helpful. Can anyone help me out?

Thanks.
 
Old 02-26-2024, 12:40 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Basically from the manual.
1. Enable port forwarding.
2. Select what type of service. Whatever it has listed for web server.
3. Enter name of service i.e web server
4. Enter the LAN IP address of your web server.
5. source and local port should be 80.
6. web traffic is TCP.

You will probably not be able to access your server using the public IP address from your LAN because it will most likely just resolve to the router's web setup page.

I guess that your ISP does allow web servers on a home service as well as not blocking originating web traffic?
 
Old 02-26-2024, 01:02 PM   #3
grizdog
LQ Newbie
 
Registered: Jun 2008
Posts: 16

Original Poster
Rep: Reputation: 0
I rebooted the router and went through port forwarding again, and now it worked. Thanks.
 
  


Reply

Tags
apache, http server, port forwarding



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] IPtables : ssh port forwarding one port to another port issue routers Linux - Networking 7 08-07-2018 08:41 AM
how to SSH to work computer behind a firewall from home port forwarding not possible tkmsr Linux - Server 3 05-05-2010 12:20 PM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
Connect from home to a computer inside an "external" LAN using port forwarding horacioemilio Linux - Networking 1 03-07-2008 03:36 AM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration