Une Algérienne pas ZEN
Soumis par Aggregation le jeu, 11/16/2017 - 13:27
C'est un comble, tu me reproches de ne pas vouloir de ton vivre ensemble?
Français, Françaises, vous nous en voulez de ne pas vouloir ce que vous ne voulez pas : le partage.
This is a simple NAT script that allows you to connect a laptop machine to a WiFi network and then hook a desktop machine to the ethernet port of the laptop machine.
#! /bin/bash
echo Configure a laptop as a wlan0 to eth0 NAT router:
echo WAN = wlan0, DHCP
echo LAN = eth0, 192.168.1.1, 255.255.255.0
# Accept all traffic
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
# General new connection rate limiting for DOS and Brute Force protection
apt-get install dhcpd
* bound it to my internet port (wlan0)
* plug my friend in my eth0 interface (or eth1...)
Routing / bridging
==================
* bridge will isolate my machine from his but will ISF ask for a wifi connexion ?
* routing will hide him behind my machine (the gateway)
NAT
===
wlan0 = the network adapter with internet (external or WAN).