You are not logged in.

#1 2015-12-28 02:06:12

kristopher_tadlock
Member
Registered: 2015-12-28
Posts: 1

Configuring iptables for one output NIC and three input NIC router

I recently bought a fitlet lan X pc which has four internal network cards. I have configured one card (enp4s0) as my output card with a dynamic IP address and the other three as input cards with static IP addresses, according to the guide I am following in the arch wiki.

https://wiki.archlinux.org/index.php/Router

The wiki defers to the NAT section of this wiki for NAT firewall configuration:
https://wiki.archlinux.org/index.php/Si … l_firewall

In this section the examples use ppp0 as the output device and eth0 as the input device.

At first I thought ppp0 was a stand in for my output NIC, which for me would be epn4s0. When I did some googling though I found information about modem IP address. What is ppp0? Is it a network card, or is it something else? How can I find the proper device name and configure it for my NAT table?

My other question is about my remaining three NIC. The router wiki assumes you have exactly two NIC. I would like to make use of my all for of my NIC, one for connecting the wider net and the other three for internal use.

In the iptable NAT rules in the wiki they specify specific network devices. Should I append multiple versions of the same rules with different NICs for each rule (ex # iptables -A fw-interfaces -i enp1s0 -j ACCEPT, # iptables -A fw-interfaces -i epn2s0 -j ACCEPT, ect)? Or is there something else I should be doing?

Lastly my ISP supports ipv6. I think I configured my INPUT chain in the filter table correctly for ipv6. The FORWARD chain and the NAT table have no recommendations in the wiki. Should I append the same rules to my ip6tables?

Would really appreciate some clarification on these instructions. Never configured iptable, learning a bunch, but there is so much out there I still don't understand.

Thank you!

Offline

Board footer

Powered by FluxBB