A month of Mobian
#13
On the firewall todo, I was able to get the firewall working without any issues with the following setup:
1. install iptables-persistent via apt-get
2. Here's a config similar to what I used in /etc/iptables/iptables.v4:
Code:
*filter
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]


# INCOMING traffic on the loopback device
-A INPUT -i lo -j ACCEPT

# ESTABLISHED RELATED TRAFFIC
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


# Let ssh in for some hosts
-A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -s <host to allow> -j ACCEPT
-A INPUT -p icmp -m state --state NEW -s 192.168.6.100 -j ACCEPT


# LOG and DROP remaining traffic
-A INPUT -m limit --limit 15/h --limit-burst 5 -j LOG --log-prefix "IPTABLES IN: "
-A INPUT -j DROP
COMMIT

2. Here's a config similar to what I used in /etc/iptables/iptables.v6:
Code:
*filter
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]

# INCOMING traffic on the loopback device
-A INPUT -i lo -j ACCEPT

# ESTABLISHED RELATED TRAFFIC
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# LOG and DROP remaining traffic
-A INPUT -m limit --limit 15/h --limit-burst 5 -j LOG --log-prefix "IP6TABLES IN: "
-A INPUT -j DROP

COMMIT


As far as I can tell it hasn't blocked any of the normal functionality of the device(calls/sms still work). Though obviously it will depend on your use cases.
  Reply


Messages In This Thread
A month of Mobian - by Ri3qXkW4hjb - 04-08-2021, 02:56 PM
RE: A month of Mobian - by Ri3qXkW4hjb - 04-08-2021, 06:38 PM
RE: A month of Mobian - by MtnSk8 - 04-09-2021, 11:56 PM
RE: A month of Mobian - by kqlnut - 04-11-2021, 04:15 AM
RE: A month of Mobian - by wibble - 04-12-2021, 10:47 AM
RE: A month of Mobian - by kqlnut - 04-13-2021, 02:56 AM
RE: A month of Mobian - by devrtz - 05-01-2021, 08:18 PM
RE: A month of Mobian - by Zebulon Walton - 04-10-2021, 06:14 AM
RE: A month of Mobian - by Ri3qXkW4hjb - 04-10-2021, 12:42 PM
RE: A month of Mobian - by RTP - 04-10-2021, 11:56 PM
RE: A month of Mobian - by Ri3qXkW4hjb - 04-13-2021, 11:54 AM
RE: A month of Mobian - by Ri3qXkW4hjb - 04-29-2021, 01:11 AM
RE: A month of Mobian - by steves - 05-09-2021, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian Bulleyes aberrio 0 78 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 124 12-11-2024, 12:56 AM
Last Post: biketool
  Upgrade to Mobian (Trixie) Staging biketool 12 686 12-06-2024, 05:46 PM
Last Post: vusra
  how to update mobian over tor vusra 14 9,483 12-04-2024, 07:01 PM
Last Post: vusra
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 41 9,475 11-27-2024, 10:39 AM
Last Post: fernando_c_m
  atinout binaries for mobian/debian? NeutralGrey 4 1,525 10-31-2024, 04:16 AM
Last Post: astylethargic
  Mobian-Kicksecure? 3460p 0 918 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 12,446 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 971 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 4,129 11-22-2023, 11:46 AM
Last Post: aLoop100o

Forum Jump:


Users browsing this thread: 3 Guest(s)