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
10 replies to this topic

#1 settingupasystem

settingupasystem

  •  Avatar image
  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:01:50 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,701 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Los Angeles, CA
  • Local time:10:50 PM

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
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 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
  • 5 posts
  • OFFLINE
  •  
  • Local time:01:50 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
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 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
  • 5 posts
  • OFFLINE
  •  
  • Local time:01:50 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
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 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
  • 5 posts
  • OFFLINE
  •  
  • Local time:01:50 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
  • 34,434 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:50 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
  • 5 posts
  • OFFLINE
  •  
  • Local time:01:50 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

  •  Avatar image
  • Members
  • 916 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:12:50 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:






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users