Score:0

Cannot 'sudo apt install ' after IPtables configuration

de flag

I'm trying to install some of the packages on Debian VM which is connected to another Debian machine (router). On the router default policy for FORWARD chain is DROP. I added rules for http(80), https(443), ftp(21), ftp-data(20) to ACCEPT but I cannot install anything.

SC: IPTables configuration on router

Default policies on first machine are ACCEPT. When default policy on router is ACCEPT I can reach http://deb.debian.org and install packages.

HBruijn avatar
in flag
Please use copy-paste and avoid posting screenshots of text when posting console output / settings. Format that text as "`code`" using [Markdown](https://serverfault.com/editing-help) and/or the formatting options in the edit menu to properly type-set your posts. That improves readability, attracts better answers and allows indexing by search engines, which may help people with similar questions.
Score:0
us flag

Pulled from this answer here

Allow connections that originate from inside

iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT

Hope this helps.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.