User Tools

Site Tools


linux:asrouter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:asrouter [2018/07/01 10:46] (current)
els created
Line 1: Line 1:
 +With this snippet all requests to interface wlx74..55c will be routed to wlp2s0
  
 +<​Code:​bash>​
 +#!/bin/bash
 +sudo sysctl -w net.ipv4.ip_forward=1
 +
 +sudo iptables -t nat -A POSTROUTING --out-interface wlp2s0 -j MASQUERADE
 +sudo iptables -A FORWARD --in-interface wlx74da387e955c -j ACCEPT
 +</​Code>​
linux/asrouter.txt ยท Last modified: 2018/07/01 10:46 by els