Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
netikras34712297d1. add the rule via UFW
2. add the rule via iptables
3. get the ufw-created rule via iptables (iptables -S | grep 22777)
4. compare the rules to see why one of them doesn't work -
melezorus343339297d@dIREsTRAITS bruh how sleep deprived i am, i meant ip fucking tables. Fuck.
if you want to manage with ufw, then disable iptables. -
dIREsTRAITS428297d@melezorus34 bruh, chill and calm down, ufw and iptables are related, how can you make them divorce? what you mean with disable it.
-
Hazarth9484296dWeird, I don't remember having this problem, and I also use an alternative Port for ssh. Iirc it just worked out of the box hmm
-
netikras34712296dFfs, just do those 4 steps and see how these 2 rules added in different ways differ. That will most likely hint you the answer what might be missing in the uwf command. An if there's only 1 rule in iptables -S output, it means uwf is not functioning at all and only the rule you added through iptables was actually added
-
dIREsTRAITS428296d@netikras do you think i should remove and reset everything? because anything i add to ufw is like decorations unless it's added to iptables
-
netikras34712296d@dIREsTRAITS IDK what you mean by decorations.
For testing purposes, you could whitelist some arbitrary port, say 62770 - that would make testing and comparing the rules created by both mechanisms possible w/o any trash and the need for a reset. -
dIREsTRAITS428293dIndeed guys, the iptables had some unknown conflicts with ufw, after resetting purging everything reinstalling, now anything i add to ufw will be applied successfully.
Thank you everyone -
melezorus343339290d@dIREsTRAITS iptables does a funny.
btw what was your rule?
cuz TIL i was writing mine wrong lol
oh also ufw totes run over iptables, my bad lolol
Hi guys, i have a serious question
I have added port 22777 to UFW to allow ssh through that port then i notice that it wouldn't work, after some time wasting, i added the same rule to iptables, then it worked, why do I have to add the same rules here and there twice? Is Ufw just a decorative app? WTF is going on? How to get rid of iptables and use only ufw? why should i allow the port twice, I need your answers please
question