Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thehellishpandaa/gateway_setup
Script for setting up a basic gateway on an Ubuntu system. It configures the system to route traffic from a local network (LAN) to the internet through a WAN interface using Network Address Translation (NAT).
https://github.com/thehellishpandaa/gateway_setup
bash gateway linux network server service
Last synced: 2 days ago
JSON representation
Script for setting up a basic gateway on an Ubuntu system. It configures the system to route traffic from a local network (LAN) to the internet through a WAN interface using Network Address Translation (NAT).
- Host: GitHub
- URL: https://github.com/thehellishpandaa/gateway_setup
- Owner: TheHellishPandaa
- License: gpl-3.0
- Created: 2024-11-05T10:29:09.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2024-11-05T15:49:29.000Z (13 days ago)
- Last Synced: 2024-11-05T16:46:22.792Z (13 days ago)
- Topics: bash, gateway, linux, network, server, service
- Language: Shell
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gateway_setup
Script for setting up a basic gateway on an Ubuntu system. It configures the system to route traffic from a local network (LAN) to the internet through a WAN interface using Network Address Translation (NAT).
## PrerequisitesBefore running this script, make sure you meet the following requirements:
- Ubuntu (or similar Linux distribution)
- Root (sudo) access on the machine
- Two network interfaces: one for WAN (internet connection) and one for LAN (local network)---
## Installation
To install and use this script, follow these steps:
### Step 1: Clone the Repository
First, clone the repository to your local machine:
```bash
git clone https://github.com/TheHellishPandaa/gateway_setup.gitStep 2: Make the Script Executable
Navigate to the directory containing the script and make it executable:
cd ubuntu-gateway-setup
chmod +x gateway_setup.shStep 3: Run the Script
Run the script as root (sudo):
sudo ./gateway_setup.sh
Script Configuration
By default, the script assumes the following interface names:
WAN Interface: ens18 (Change this if your WAN interface is different)
LAN Interface: ens19 (Change this if your LAN interface is different)You can modify these variables directly in the script or update them to match your specific network configuration.
Tjis is not a final Version