Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

New to firewalls, portforwarding and am building an inventory system


  • Please log in to reply
14 replies to this topic

#1 settingupasystem

settingupasystem

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 11 April 2024 - 11:54 PM

Hi everyone! 

Over the last two months, I built a GUI inventory system consisting of a server app and a client app. The aim is to have a digitalized recordkeeping system for manufacturing companies. I built it in python and used FTP_TLS library for the communication protocol. I have finished building all the features and both apps runs perfectly on different computers at my place where I have only 1 router. I have worried nothing about firewalls and portforwarding, which I think is important for real world usage. 

 

We can assume that the server app(which I think should have a static IP) and the various client installations will be connected to the internet via different ISPs. A client app could be anywhere in the world but would need to be able to connect to the server. 

What do I need to know about firewalling and port forwarding specifically related to the server?

 

Sorry if this is a very basic question. If someone could provide me brief overview, I would appreciate it very much.



BC AdBot (Login to Remove)

 


#2 greg18

greg18

  •  Avatar image
  • Members
  • 1,738 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Los Angeles, CA
  • Local time:12:03 AM

Posted 12 April 2024 - 12:23 AM

You would be using a VPN, the host software would be at the client end not on some remote server, what about the SQL dbase to keep track of records, etc.?



#3 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 12 April 2024 - 06:48 PM

Redo the networking to use openssl and https

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#4 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 13 April 2024 - 12:38 PM

Redo the networking to use openssl and https

I built it with openssl and FTP_TLS. I think the encryption is fine. I ran a lot of test today with my friend who is located away. The system was not able to make a connection. I helped him set up the server node because he owned his router, unlike me(organization router). We setup an address reservation, and then setup port forwarding rules for 1) Default ftp, then 2) ports 60000-65000 and 3) Port 990. I tried connecting with the client app, and it didn't work. I am feeling very dismayed, because I worked more than a hundred hours on this project and it is not coming to fruition because of one last thing.



#5 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 13 April 2024 - 12:46 PM

With https you wouldn't need to worry about any firewalls cause https uses port 443 and is already operational on networks.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#6 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 13 April 2024 - 12:49 PM

With https you wouldn't need to worry about any firewalls cause https uses port 443 and is already operational on networks.

Thank you for your reply! I will try that.

But wouldn't other services be blocked from using that port while the server is running? 



#7 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 13 April 2024 - 01:01 PM

You can assign a different internal ip to it and have external ip forwarded to the internal server

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#8 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 19 April 2024 - 12:10 PM

We weren't able to port forward on 443 because of an error saying that that port is reserved for remote management. Should I consider trying SFTP which uses port 22? It's not too much change to my program code. 


Edited by settingupasystem, 19 April 2024 - 12:10 PM.


#9 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 19 April 2024 - 01:18 PM

Remove remote management on your router as that is a security risk.

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#10 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 20 April 2024 - 10:40 PM

I spent many hours trying to convert the code bases to https, but it didn't work because chatgpt wasn't working hard. I have finals week next week, so I am pausing this project for a bit. 

edit: btw I am not a cs major.


Edited by settingupasystem, 20 April 2024 - 10:41 PM.


#11 Dominique1

Dominique1

    Bleepin Funny


  •  Avatar image
  • Members
  • 1,027 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:12:03 AM

Posted 22 April 2024 - 03:15 AM

What is "organization router"?

If you setup a server for your services, it needs a known Internet route for your clients.  If this is a business you are starting, you should consider purchasing web hosting.  Some prices are really affordable.

If you want to piggy-back on your employer's equipment, forget it.  It's ground to kick you out of your job.  Better yet, ask the permission to your boss, and if he accepts, he will do the required Internet wirering stuff.

You could try to do this at home.  Often, ISP don't allow servers, so if they find out (and they can find out), they will terminate your Internet subscription.  If tolerated but your are on a changing IP Internet service, you can use a dynamic DNS service so your clients can reach you whatever your IP is, but you will need to configure your home router properly.

But my recommendation, go with web hosting solution.
:busy:



#12 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 07 May 2024 - 06:31 AM

Hello again, I spent a lot of time setting up a basic https system (for the first time ever). I used pythons request library and http.server. For all functional purposes, I have pretty much completed my client-server system. Only one problem remains- I am struggling with securing the connection. Everything works fine when response.(url, headers,  verify=False). I am using self signed certificate. I have set the certificate as a trusted certificate through windows cert manager. When I attempt to do a secure connection with verify=pathtopublickey.pem, I keep getting error "HTTPSConnectionPool(host='192.168.1.71', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2423)')))"

Much appreciate any help!


Hello again, I spent a lot of time setting up a basic https system (for the first time ever). I used pythons request library and http.server. For all functional purposes, I have pretty much completed my client-server system. Only one problem remains- I am struggling with securing the connection. Everything works fine when response.(url, headers,  verify=False). I am using self signed certificate. I have set the certificate as a trusted certificate through windows cert manager. When I attempt to do a secure connection with verify=pathtopublickey.pem, I keep getting error "HTTPSConnectionPool(host='192.168.1.71', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2423)')))"

Much appreciate any help!



#13 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 07 May 2024 - 09:09 AM

Have a read here https://www.quora.com/What-is-EoF-with-respect-to-SSL

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra


#14 settingupasystem

settingupasystem
  • Topic Starter

  •  Avatar image
  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:03 AM

Posted 19 May 2024 - 09:07 AM

The end of file error was because my server script was expecting the clients certificate. The cert requirement line slipped in due to chatgpt. The bane of AI-coding. So I built the entire transport system now. When I showed the completed product to the people running the inventory, they highlighted the neccessity for more features and described the same to me in detail. So I am building those currently. 

 

Thank you cryptodan for your guidance. This project might become successful.



#15 cryptodan

cryptodan

    Bleepin Madman


  •  Avatar image
  • Members
  • 35,210 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:03 AM

Posted 19 May 2024 - 03:51 PM

You are welcome and if it does please make a donation to one the following issues

Diabetes
Cancer (all kinds)
Veteran Causes like Wounded Warrior
Blindness
Autism

US Navy Veteran from 2002 to 2006

Masters in Computer and Digital Forensics Expert - Stevenson University Alumni 2015

Arch Desktop - https://termbin.com/epij

Arch Laptop - https://www.termbin.com/dnwk

Ubuntu Server - https://termbin.com/zvra





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users