Stretch and Nftables, forward traffic from eth0 to eth1

Kernels & Hardware, configuring network, installing services

Stretch and Nftables, forward traffic from eth0 to eth1

Postby GabrieleMax » 2017-07-11 11:14

I should start to understand how Linux's routing works, I read nftables will replace iptables but I didn't find on internet and also on e-books a good document about it!

I have:
- Modem/router Draytek (192.168.0.1);
- Eth0 (192.168.0.2);
- Eth1 (192.168.1.1);
- Wlan1 (192.168.2.1);

What I need:
- To enable openvpn on the port 1199 on eth1, maybe I should start to link from the router Draytek openvpn port to eth0 and eth0 should forward it to eth1;
- I need to block all traffic to eth1 from wan exept openvpn;
- I need to allow all traffic from eth1 to internet (in the next future I'll disable some ports) with eth0 gateway.
- I need to allow all traffic from wlan1 to internet with eth0 gateway, I'll configure wlan1 like a hotspot.

Like what I wrote above I'd like to do it with myself but before I should find a good document which I could study nftables but if you'll help me I'll apprecciate it very much! :)

Thanks!
GabrieleMax
GabrieleMax
 
Posts: 36
Joined: 2016-09-07 20:24
Location: Senigallia

Return to System configuration

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable