You are not logged in.

#1 2014-10-11 22:46:20

adotomov
Member
Registered: 2014-08-18
Posts: 1

Forwarding ports on a gateway

Hi guys, I need some help and I hope some of you can provide it. I've decided to split my home network in two (my ISP provides me with two static IP addresses). The reason for doing this is because we have way too many devices at home now, so I dedicated one IP to all wireless ones and the other one to my wired network. So, for my wired network, I took a small mini-ITX PC running an Intel Atom 230 CPU with 1GB RAM and two NICs which I had laying in storage and made it into a router/gateway. Behind it I have two PCs, one Server and a network printer.
Here are some technical details about the network:

Gateway PC:
Static IP: 77.70.***.** (connected to enp1s2)
LAN IP: 10.0.0.1 (connected to enp1s6)
Subnet Mask: 255.255.255.224

I am running a DHCP server, all clients are receiving IPs and are also successfully connecting to the Internet through NAT.

On my home server I am running Apache/PHP/MariaDB, NAS, and FTP. The IP of the server is 10.0.0.5

My question is, how can I forward ports 80 and 21 on the server so that I can access these services from an outside network through my gateway. What I want is when I type my static IP 77.70.***.** to get redirected to my apache server and also to gain access to my ftp folders from an outside network.
Needless to say, everything is running Arch Linux.

I will really appreciate the help.

Offline

Board footer

Powered by FluxBB