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 Pinephone Notification LED biketool 0 86 05-30-2025, 03:40 AM
Last Post: biketool
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 62 18,180 05-14-2025, 03:28 AM
Last Post: anonymous
  Vivaldi Web browser nearly native for Mobian biketool 3 458 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 569 04-29-2025, 02:10 PM
Last Post: mdk
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 665 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 587 01-02-2025, 12:47 PM
Last Post: zetabeta
  Upgrade to Mobian (Trixie) Staging biketool 13 2,745 12-29-2024, 10:35 AM
Last Post: biketool
  Mobian Bulleyes aberrio 0 827 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 754 12-11-2024, 12:56 AM
Last Post: biketool
  how to update mobian over tor vusra 14 11,880 12-04-2024, 07:01 PM
Last Post: vusra

Forum Jump:


Users browsing this thread: 1 Guest(s)