Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Michel Verdier
On 2024-01-12, Ralph Aichinger wrote: > I "only" have to find out what mechanism adds the lower, en2 default > route within a few minutes, once I delete it. I ran "radvdump", but > that only dumped the correct announcement my provider sends for the > net over the PPPoE connection. Hm. > > Thanks e

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Ralph Aichinger
On Fri, Jan 12, 2024 at 07:35:14PM +0100, Michel Verdier wrote: > meta l4proto udp log level info prefix "udp" accept Thanks for that, and thanks to Michael Kjörling, your replies really helped. I found log lines similar to: 2024-01-12T19:51:32.999346+01:00 pi kernel: [3401524.305759] ralphfi

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Michel Verdier
On 2024-01-12, Ralph Aichinger wrote: > If I insert the following rule at the bottom, everything starts to > work: > > meta l4proto udp accept Add log to see what would be dropped: meta l4proto udp log level info prefix "udp" accept Provide "nft list ruleset" to better see what nft understa

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Ralph Aichinger
On Fri, Jan 12, 2024 at 05:26:57PM +, Michael Kjörling wrote: > My suggestion would be to insert a "udp log" rule. (Pretty sure you > only need "udp", not "meta l4proto udp".) Thanks, I will try that. Yes "meta l4proto udp" might be cargo cult configuration ;) > That will give you a fireh

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Michael Kjörling
On 12 Jan 2024 16:19 +0100, from r...@h5.or.at (Ralph Aichinger): > If I insert the following rule at the bottom, everything starts to > work: > > meta l4proto udp accept > > but I don't know how to limit this over broad rule (so it does not > forward UDP to the internal network on en0, which I

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Ralph Aichinger
On Fri, Jan 12, 2024 at 03:52:46PM +, Tom Furie wrote: > other input/output rules that are interfering, but since you've abridged > your ruleset we have no way of knowing. Sorry, wanted to include the full rulest an forgot. I've still have left off the "table ip nat" and "table ip filter" chai

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Ralph Aichinger
On Fri, Jan 12, 2024 at 03:52:46PM +, Tom Furie wrote: > Where is the DNS server the dmz host is resolving against? In your dmz, > your internal network, on the firewall machine, outside? You may have > other input/output rules that are interfering, but since you've abridged >

Re: nftables firewall question: matching udp in ipv6

2024-01-12 Thread Tom Furie
not work. > E.g. if I lookup a DNS name in my dmz (connected to en2), I see no > udp packets if i start tcpdump on the external interface ppp0. I see > them entering on en2. > Where is the DNS server the dmz host is resolving against? In your dmz, your internal network, on the firewall

nftables firewall question: matching udp in ipv6

2024-01-12 Thread Ralph Aichinger
Hello! I am currently fighting with the following problem: I've got a system that has 3 relevant interfaces: ppp0, en0 and en2, for external, internal and dmz respectively. The dmz is IPv6 only, a homelab testbed more or less. I've got the follwing rules in /etc/nftables.conf for ipv6 (i am abr

I have finally figured out how to export Private Key from Fortigate firewall and successfully install Godaddy Wildcard SSL certificate in UniFi Cloud Key Gen 2 Plus Network Controller

2022-10-26 Thread Turritopsis Dohrnii Teo En Ming
Subject: I have finally figured out how to export Private Key from Fortigate firewall and successfully install Godaddy Wildcard SSL certificate in UniFi Cloud Key Gen 2 Plus Network Controller Good day from Singapore, Author: Mr. Turritopsis Dohrnii Teo En Ming Country: Singapore Date: 26 Oct

Re: regarding firewall discussion

2022-06-03 Thread Richard Hector
On 2/06/22 05:26, Joe wrote: On Tue, 31 May 2022 03:17:52 +0100 mick crane wrote: regarding firewall discussion I'm uncertain how firewalls are supposed to work. I think the idea is that nothing is accepted unless it is in response to a request. What's to stop some spurious instruct

Re: regarding firewall discussion

2022-06-01 Thread mick crane
On 2022-06-01 18:26, Joe wrote: On Tue, 31 May 2022 03:17:52 +0100 mick crane wrote: regarding firewall discussion I'm uncertain how firewalls are supposed to work. I think the idea is that nothing is accepted unless it is in response to a request. What's to stop some spurious in

Re: regarding firewall discussion

2022-06-01 Thread Joe
On Wed, 1 Jun 2022 15:02:10 -0400 rhkra...@gmail.com wrote: > > mick crane wrote: > > > regarding firewall discussion I'm uncertain how firewalls are > > > supposed to work. > > > I think the idea is that nothing is accepted unless it is in > > &

Re: regarding firewall discussion

2022-06-01 Thread rhkramer
> mick crane wrote: > > regarding firewall discussion I'm uncertain how firewalls are > > supposed to work. > > I think the idea is that nothing is accepted unless it is in response > > to a request. > > What's to stop some spurious instructions be

Re: regarding firewall discussion

2022-06-01 Thread Joe
On Tue, 31 May 2022 03:17:52 +0100 mick crane wrote: > regarding firewall discussion I'm uncertain how firewalls are > supposed to work. > I think the idea is that nothing is accepted unless it is in response > to a request. > What's to stop some spurious instructions

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-06-01 Thread Tom Browder
On Wed, Jun 1, 2022 at 11:21 john doe wrote: > when does it actually start operating? Does it do so then, or does it take > > a reboot? > Apparently, if you 'enable' 'ufw', it will start and be enabled at boot. Good, thanks. According to (1), ufw should work with nftables, I did not follow th

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-06-01 Thread john doe
ready for use by a customer, yours truly. It is the same server I messed up the firewall with and locked myself out of. The OS has been reinstalled and is ready for me to use again. On that note, for my next try with the server, I will definitely use UFW with the legacy uptables that was

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-06-01 Thread Tom Browder
er ready for use by a customer, yours truly. It is the > same > >> server I messed up the firewall with and locked myself out of. The OS > has > >> been reinstalled and is ready for me to use again. On that note, for my next try with the server, I will definitely use UFW with t

Re: regarding firewall discussion

2022-06-01 Thread mick crane
On 2022-05-31 12:21, IL Ka wrote: What's to stop some spurious instructions being sent in response to genuine request? Packets do not contain instructions, only data. If your TCP/IP implementation doesn't have vulnerabilities any packet shouldn't be a problem. Firewall preve

Re: regarding firewall discussion

2022-05-31 Thread IL Ka
some spurious instructions being sent in response to > genuine request? Packets do not contain instructions, only data. If your TCP/IP implementation doesn't have vulnerabilities any packet shouldn't be a problem. Firewall prevents technically legal packets from reaching software that sho

Re: regarding firewall discussion

2022-05-30 Thread Jeremy Ardley
On 31/5/22 10:17 am, mick crane wrote: regarding firewall discussion I'm uncertain how firewalls are supposed to work. I think the idea is that nothing is accepted unless it is in response to a request. What's to stop some spurious instructions being sent in response to genui

Re: regarding firewall discussion

2022-05-30 Thread Emanuel Berg
mick crane wrote: > regarding firewall discussion I'm uncertain how firewalls > are supposed to work. I think the idea is that nothing is > accepted unless it is in response to a request. What's to > stop some spurious instructions being sent in response to > genuine req

regarding firewall discussion

2022-05-30 Thread mick crane
regarding firewall discussion I'm uncertain how firewalls are supposed to work. I think the idea is that nothing is accepted unless it is in response to a request. What's to stop some spurious instructions being sent in response to genuine request? regards mick

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Edwin Zimmerman
On 5/30/22 09:41, Greg Wooledge wrote: > On Mon, May 30, 2022 at 07:13:54AM -0500, Tom Browder wrote: >> No worries. All those responses about the subject IP now are the norm for a >> bare-iron server ready for use by a customer, yours truly. It is the same >> server I messed

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Timothy M Butterworth
On Mon, May 30, 2022 at 1:24 PM Tom Browder wrote: > On Mon, May 30, 2022 at 09:03 IL Ka wrote: > >> IMHO: It is better to have a firewall and block (policy -- drop) INPUT >> and FORWARD by default. >> And open only ports that must be opened. >> This will help if

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Tom Browder
On Mon, May 30, 2022 at 09:03 IL Ka wrote: > IMHO: It is better to have a firewall and block (policy -- drop) INPUT and > FORWARD by default. > And open only ports that must be opened. > This will help if you install some software that listens for 0.0.0.0 by > accident >

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Tom Browder
On Mon, May 30, 2022 at 08:42 Greg Wooledge wrote: .. > Unless this machine is more than just a web server...? It does serve other purposes.

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread IL Ka
IMHO: It is better to have a firewall and block (policy -- drop) INPUT and FORWARD by default. And open only ports that must be opened. This will help if you install some software that listens for 0.0.0.0 by accident On Mon, May 30, 2022 at 4:42 PM Greg Wooledge wrote: > On Mon, May 30, 2022

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Greg Wooledge
On Mon, May 30, 2022 at 07:13:54AM -0500, Tom Browder wrote: > No worries. All those responses about the subject IP now are the norm for a > bare-iron server ready for use by a customer, yours truly. It is the same > server I messed up the firewall with and locked myself out of. The OS h

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Tom Browder
It is the same server I messed up the firewall with and locked myself out of. The OS has been reinstalled and is ready for me to use again. If all is set as expected, I should be able to get http and https working on it. And I will certainly try to take care of most of the security concerns expre

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread Curt
On 2022-05-29, Greg Wooledge wrote: > > Second, I cannot ping this IP address, nor can I telnet to port 80 of it. > (Nor port 22.) > That's strange; I can ping it (I'm not in Kansas anymore): curty@einstein:~$ ping 69.30.225.10 PING 69.30.225.10 (69.30.225.10) 56(84) bytes of data. 64 bytes fro

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-30 Thread john doe
On 5/30/2022 12:26 AM, Tom Browder wrote: On Sun, May 29, 2022 at 15:55 Greg Wooledge wrote: ... Thanks, Greg. It looks like my server was blocked from ports 80 and 443 upstream from it (as you and others suspected), so I asked my provider to reinstall the OS and ensure it has public access to

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Charles Kroeger
> Maybe I should remove all firewall progs and start from zero. I would suggest you install Shorewall. it is not the pain in the arse that's been the theme of this thread so far.

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Timothy M Butterworth
On Sun, May 29, 2022 at 8:13 PM Greg Wooledge wrote: > On Sun, May 29, 2022 at 11:50:44PM +, Lee wrote: > > On 5/29/22, Greg Wooledge wrote: > > > Second, I cannot ping this IP address, nor can I telnet to port 80 of > it. > > > > For whatever it's worth.. > > > > Pinging 69.30.225.10 with 3

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> > > ssh gives me a login prompt > > Btw, I highly recommend: * Block SSH access from any IP except one you are going to use to manage this server * If you have dynamic IP, you can add all your ISP network, or, at least, your country: (list can be downloaded here https://blog.ip2location.com/kno

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Greg Wooledge
On Sun, May 29, 2022 at 11:50:44PM +, Lee wrote: > On 5/29/22, Greg Wooledge wrote: > > Second, I cannot ping this IP address, nor can I telnet to port 80 of it. > > For whatever it's worth.. > > Pinging 69.30.225.10 with 32 bytes of data: > Reply from 69.30.225.10: bytes=32 time=43ms TTL=53

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Lee
On 5/29/22, Greg Wooledge wrote: > On Sun, May 29, 2022 at 03:39:05PM -0500, Tom Browder wrote: >> I have not intentionally hidden anything, Greg--I just never saw the need >> for >> mentioning it given the dialogue--x.y.z.w is just shorthand. If you >> must know the exact IP address, it is 69.30.

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 15:55 Greg Wooledge wrote: ... Thanks, Greg. It looks like my server was blocked from ports 80 and 443 upstream from it (as you and others suspected), so I asked my provider to reinstall the OS and ensure it has public access to ports 80 and 443. Best regards, -Tom

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Greg Wooledge
c Internet, then that's a huge red flag pointing to a firewall that filters incoming connections based on source IP. Such a firewall could be on the host itself, or on a router which protects the host. If you can't do any of those things, then we don't get as much information out of it. I

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 2:21 PM Greg Wooledge wrote: > > > > > btw, are you able to ping server? > > > > > > Yes. > > > > It is always better to show the command and the output instead of saying > > yes/no! :) > > Except it should be abundantly clear by now that you're dealing with > someone who b

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Greg Wooledge
> > > btw, are you able to ping server? > > > > Yes. > > It is always better to show the command and the output instead of saying > yes/no! :) Except it should be abundantly clear by now that you're dealing with someone who believes that they must hide every single detail from the ones who would

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> > > I must say, I can not realy understand how you can ping and not > telnet/access your web server. > > Some router between OP and his server has something like -I FORWARD -j REJECT --reject-with icmp-host-unreachable

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread john doe
On 5/29/2022 7:20 PM, Tom Browder wrote: On Sun, May 29, 2022 at 11:39 IL Ka wrote: btw, are you able to ping server? Yes. It is always better to show the command and the output instead of saying yes/no! :) I must say, I can not realy understand how you can ping and not telnet/access yo

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 11:39 IL Ka wrote: > btw, are you able to ping server? > Yes.

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread tomas
st from the outside with the public IP and got no good response: > > $ telnet x.y.z.w 80 > Trying x.y.z.w... > telnet: Unable to connect to remote host: No route to host I may be off, but I think a firewall shouldn't do that [1]. It can lead to a "connection refused"

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
btw, are you able to ping server? On Sun, May 29, 2022 at 7:26 PM Tom Browder wrote: > On Sun, May 29, 2022 at 10:33 AM IL Ka wrote: > > > > > >> When running those, I'm told neither the arptablrs nor the ebtables are > registered (not installed). Should I install them? > > > > No. > > > > So,

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
ering "no route to host" for your "telnet [ip] 80" session. I am pretty sure this is not your firewall problem

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 10:33 AM IL Ka wrote: > > >> When running those, I'm told neither the arptablrs nor the ebtables are >> registered (not installed). Should I install them? > > No. > > So, you now have legacy (classic) iptables, right? Yes. > What is the output of ``iptables -L -v -n`` C

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> When running those, I'm told neither the arptablrs nor the ebtables are > registered (not installed). Should I install them? > No. So, you now have legacy (classic) iptables, right? What is the output of ``iptables -L -v -n`` and ``iptables -S`` ?

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 09:51 IL Ka wrote: > >>> Do I have to switch all four *legacy *tables? >> > > yes > When running those, I'm told neither the arptablrs nor the ebtables are registered (not installed). Should I install them? >

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> > >> Do I have to switch all four *legacy *tables? > yes

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sat, May 28, 2022 at 17:24 IL Ka wrote: > ... I am not familiar with nft, bit you can switch to iptables using >> ``update-alternatives`` >> > > # update-alternatives --set iptables /usr/sbin/iptables-legacy > # update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > # update-alterna

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Erwan David
Le 29/05/2022 à 13:22, Tom Browder a écrit : On Sun, May 29, 2022 at 05:41 Tom Browder wrote: Does anyone have a good reason for me to NOT install and enable UFW? -Tom  good reason would be that thtere is obviously already something on your server magaing the firewalling. Having 2 different

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> > > > Good to know. But does fail2ban require ipset? > No, but having several thousand rules is not convenient, so I prefer ipset > They never have before in over 15 years, and, before I got this server > started, its mate was serving fine. But if the ufw doesn't work, I'll ask > them. > I'd s

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
ur host from one static IP, you probably do not need > fail2ban at all. > Good to know. But does fail2ban require ipset? Anyway, I am not sure that port 80 is blocked by your firewall and not your > hosting firewall > They never have before in over 15 years, and, before I got this ser

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
ot need fail2ban at all. Anyway, I am not sure that port 80 is blocked by your firewall and not your hosting firewall

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread IL Ka
> > $ telnet x.y.z.w 80 > Trying x.y.z.w... > telnet: Unable to connect to remote host: No route to host > But you can ssh to this host, right? Well, that means the firewall blocks your request and sends the ICMP message "no route to host". Switch to

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sun, May 29, 2022 at 05:41 Tom Browder wrote: Does anyone have a good reason for me to NOT install and enable UFW? -Tom

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-29 Thread Tom Browder
On Sat, May 28, 2022 at 20:06 IL Ka wrote: ... 3. You should also check that Apache is running and listening to this port, > use ``ss -lt``. > For this command you _may_ use sudo to get process names (``sudo ss > -ltp``). Read ``ss --help`` > > If you were able to connect on this host, then try t

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 20:06 IL Ka wrote: > >> $ sudo su >> # telnet 80 >> Trying 0.0.0.80... >> > > 1. You are using telnet wrong: it should be "telnet [host] [port]". Please > read "man telnet". > 2. You do not need sudo to use telnet, do not do that > 3. You should also check that

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread IL Ka
> > > $ sudo su > # telnet 80 > Trying 0.0.0.80... > 1. You are using telnet wrong: it should be "telnet [host] [port]". Please read "man telnet". 2. You do not need sudo to use telnet, do not do that 3. You should also check that Apache is running and listening to this port, use ``ss

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 19:10 Timothy M Butterworth < timothy.m.butterwo...@gmail.com> wrote: … On the local host try running `telnet 127.0.0.1 80` > I was able to connect, thanks, Timothy! Now what? I would really like to use ufw. -Tom

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 19:01 Greg Wooledge wrote: > On Sat, May 28, 2022 at 05:51:38PM -0500, Tom Browder wrote: > … > > ... wow. Just wow. How can such a short excerpt contain so many failures? Greg, calm down. I get it, but I haven’t unlearned years of muscle memory—sorry. And the telnet

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Timothy M Butterworth
.0.0.80... >> >> >> and gave up waiting. >> > On the local host try running `telnet 127.0.0.1 80` If you can not connect to the web server on the local host then it is likely not running. Try running `sudo service --status-all` `sudo systemctl enable apache2` and `sudo service apache2 start` > Maybe I should remove all firewall progs and start from zero. > >

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Greg Wooledge
On Sat, May 28, 2022 at 05:51:38PM -0500, Tom Browder wrote: > $ sudo su > # telnet 80 > Trying 0.0.0.80... ... wow. Just wow. How can such a short excerpt contain so many failures? 1) "sudo su" is stupid. You don't need TWO setuid programs to get a root shell. Either use "sudo

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
om home? Do you see apache >> listening this port using ``ss``? >> > > On the new host I did: > > $ sudo su > # telnet 80 > Trying 0.0.0.80... > > > and gave up waiting. > Maybe I should remove all firewall progs and start from zero.

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 17:30 IL Ka wrote: > I am running an Apache server and using Qualys Lab’s server checker. It >> shows no access to the server. >> >> Have you tried to telnet to port 80 from home? Do you see apache > listening this port using ``ss``? > On the new host I did: $ sudo s

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread IL Ka
> > I am running an Apache server and using Qualys Lab’s server checker. It > shows no access to the server. > > Have you tried to telnet to port 80 from home? Do you see apache listening this port using ``ss``? > > Whatever attempt I make to change the ports disappears when I reboot. > > Sure,

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Dan Ritter
2ban and nft > tables, so I > need help on how to properly allow https and http inbound. We have established that you do not have a firewall on your machine blocking ports. iptables and nftables control the same underlying mechanism, and you have clearly set the policy to ACCEPT. Therefore, som

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 17:08 Dan Ritter wrote: … Therefore, something outside of your machine is blocking the > ports, or you are misreading or misusing the tools that are > telling you the ports are blocked. Tell us how you are checking the ports I am running an Apache server and using Qual

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread IL Ka
> > > > A little more digging shows the new server is using fail2ban and nft > tables, so I > need help on how to properly allow https and http inbound. > > I am not familiar with nft, bit you can switch to iptables using ``update-alternatives`` # update-alternatives --set iptables /usr/sbin/iptab

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
On Sat, May 28, 2022 at 14:11 Tom Browder wrote: > As the bare-iron server came from my long-time cloud provider (since > Debian 6), incoming ports 80 and 443 are blocked. A little more digging shows the new server is using fail2ban and nft tables, so I need help on how to properly allow https

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread IL Ka
> > > > -P INPUT ACCEPT > -P FORWARD ACCEPT > -P OUTPUT ACCEPT > -N f2b-sshd > -A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd > -A f2b-sshd -s 62.204.41.56/32 -j REJECT --reject-with > icmp-port-unreachable > -A f2b-sshd -s 61.177.173.48/32 -j REJECT --reject-with > icmp-port-unreachable > -A

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Georgi Naplatanov
On 5/28/22 22:11, Tom Browder wrote: > As the bare-iron server came from my long-time cloud provider (since > Debian 6), incoming ports 80 and 443 are blocked. > > I ran my usual iptables command for new servers from them, but this > time the default settings were different so it didn't work. Try

Re: Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Dan Ritter
Tom Browder wrote: > As the bare-iron server came from my long-time cloud provider (since > Debian 6), incoming ports 80 and 443 are blocked. > > I ran my usual iptables command for new servers from them, but this > time the default settings were different so it didn't work. > > Output from "sud

Firewall blocking my new Debian 11 server ports 80 and 443

2022-05-28 Thread Tom Browder
As the bare-iron server came from my long-time cloud provider (since Debian 6), incoming ports 80 and 443 are blocked. I ran my usual iptables command for new servers from them, but this time the default settings were different so it didn't work. Output from "sudo iptables -S" before my attempt:

Re: Firewall POSTROUTING problem

2021-08-12 Thread Lucas Castro
On 8/11/21 7:01 PM, Alain D D Williams wrote: On Wed, Aug 11, 2021 at 11:50:30PM +0200, deloptes wrote: Alain D D Williams wrote: iptables -A FORWARD -j ACCEPT and the OUTPUT? OUTOUT is also ACCEPT, however this is not, I think, important as the packets come from 10.239.239.23 (via br0) a

Re: Firewall POSTROUTING problem

2021-08-11 Thread Alain D D Williams
check traffic with sniffer (no packet should be forwarded from virt machine > to the Internet) It now works all of a sudden I am scratching my head to see what I have changed. The only thing is rebooting the virtual machine that I was testing from. I cannot see that that should have made a

Re: Firewall POSTROUTING problem

2021-08-11 Thread IL Ka
> > > > > > iptables -A FORWARD -j ACCEPT > Are you sure your packets are forwarded via netfilter? Try to disable forwarding (with sysctl) or change rulte to -j DROP and check traffic with sniffer (no packet should be forwarded from virt machine to the Internet)

Re: Firewall POSTROUTING problem

2021-08-11 Thread Alain D D Williams
On Wed, Aug 11, 2021 at 11:50:30PM +0200, deloptes wrote: > Alain D D Williams wrote: > > > iptables -A FORWARD -j ACCEPT > > > > and the OUTPUT? OUTOUT is also ACCEPT, however this is not, I think, important as the packets come from 10.239.239.23 (via br0) and go to the Internet - thus FORWARD

Re: Firewall POSTROUTING problem

2021-08-11 Thread deloptes
Alain D D Williams wrote: > iptables -A FORWARD -j ACCEPT > and the OUTPUT? > and this is not a problem ... evidence is outgoing packets with source > address 10.239.239.23 ah, ok, I misinterpreted it. -- FCD6 3719 0FFB F1BF 38EA 4727 5348 5F1F DCFE BCB0

Re: Firewall POSTROUTING problem

2021-08-11 Thread Alain D D Williams
On Wed, Aug 11, 2021 at 11:32:51PM +0200, deloptes wrote: > I remember it was not only the POSTROUTING. May be I am wrong, but I think > FORWARD and OUTPUT is important. > I also wonder why you are mixing up the -s and --to-source. You should be > using the local address for -s and --to-source the

Re: Firewall POSTROUTING problem

2021-08-11 Thread deloptes
23 I ping the BBC (212.58.249.145) and look with a packet > sniffer on the BB modem I see outgoing addresses 10.239.239.23 > > This should not happen. I am running an iptables firewall that should fix > this with the rule below: > > iptables -t nat -A POSTROUTING -s 10.239.239

Firewall POSTROUTING problem

2021-08-11 Thread Alain D D Williams
This should not happen. I am running an iptables firewall that should fix this with the rule below: iptables -t nat -A POSTROUTING -s 10.239.239.0/24 -j SNAT --to-source 192.168.108.2 I have tried variations like: iptables -t nat -A POSTROUTING -o enp3s0 -j SNAT --to-source 192.168.108.2 It is

Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-19 Thread Anssi Saari
t anywhere with cdist. Ansible is a little whiny and frustrating so I did some things like editing a config file in an ssh loop since Ansible didn't run my perfectly fine sed thingy. So anyways, my various firewall configs are in place; the ability to include a directory from nftables turned

Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread Anssi Saari
john doe writes: > You could have one common file that includes a custum file (1). > You would have one custum file per host (custum-cups, custum-smb ...). Right, thanks. I missed the whole include ability in nftables.

Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread Andy Smith
Hello, On Sat, Jun 12, 2021 at 07:02:50PM +0300, Anssi Saari wrote: > But then... One machine has a radius server that needs UDP port 1812 > open. And another is a print server with CUPS and SMB which apparently > need at least TCP ports 631 and 137 open. It sounds like you need configuration man

Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread john doe
I can make changes to the "main" firewall and merge those changes to the slightly tweaked branches. Or possibly also some preprocessor type of thing that generates three versions of the firewall script. Or just generate the whole nft scripts with the small variants. Just wondering what o

Re: How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread deloptes
Anssi Saari wrote: > I also need some way of pushing these firewall scripts and other config > stuff over to the machines too. It's not a huge network but manually > logging into each machine, overwriting /etc/nftables.conf and restarting > nftables.service is a pain. cdist look

How to manage a firewall script with minor tweaks for different machines?

2021-06-12 Thread Anssi Saari
erver that needs UDP port 1812 open. And another is a print server with CUPS and SMB which apparently need at least TCP ports 631 and 137 open. How could I neatly incorporate these minor tweaks in a single nft script? I was thinking of git branches where I can make changes to the "main&quo

Re: pppoe performance on debian and debian as router / firewall

2021-06-06 Thread Andrei POPESCU
nd none (most people seem to be using freebsd-based > firewalls these days), so my questions are: > > Does anyone here have any experience using debian as of router and firewall > on such hardware as mine using pppoe? Debian is using the standard Linux kernel, so I would expect res

Re: pppoe performance on debian and debian as router / firewall

2021-06-05 Thread Michael Stone
On Sat, Jun 05, 2021 at 08:07:56PM +0200, Antonio wrote: The problem is my ISP uses pppoe for my symmetric 1 gbps connection and I know this type of connection requires a quite performant cpu, as it is single-threaded and uses only one cpu core. That's not correct for linux kernel mode pppoe; i

Re: pppoe performance on debian and debian as router / firewall

2021-06-05 Thread basti
Hello, you can use PPPoE with rp-pppoe (kernel-modul). On my RPi 3 it has a better performance as run PPPoE in userspace. I do not know if it multiple cores. Am 05.06.21 um 20:07 schrieb Antonio: > Hi, > > I'm planning to setup a router and firewall based on debian for my home

pppoe performance on debian and debian as router / firewall

2021-06-05 Thread Antonio
Hi, I'm planning to setup a router and firewall based on debian for my home lab. I know there are better (I mean, easier...) choices for this type of machine (have tried some of them, currently using pfsense) but I do want to find out if I could use debian. The problem is my ISP

Re: What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread Andrei POPESCU
On Sb, 20 iun 20, 14:37:34, Tom Browder wrote: > > I have no love for iptables and very little experience with it. So it seems > I should remove the iptables package and install the nftables one. And I'll > look into firewalld which I tried briefly some years ago. In case you are considering usin

Re: What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread Tom Browder
On Sat, Jun 20, 2020 at 12:44 Ben Lavender wrote: > Personally I'd learn nf_tables because that's the way forward and if you > stick to it's CLI then the better. > Thanks, Ben. -Tom

Re: What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread Tom Browder
On Sat, Jun 20, 2020 at 10:48 wrote: > Hi, > ... > Actually, as explained on https://wiki.debian.org/nftables, Buster uses > an "iptables-nft layer (i.e, using iptables syntax with the nf_tables > kernel subsystem). This also affects ip6tables, arptables and ebtables." ... Oops, my bad. ...

Re: What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread Ben Lavender
les > and install nftables first? > > If I keep iptables, should I add a firewall management program like > ufw or something else? Is there something like ufw for nftables? > > Thanks. > > Best regards, > > -Tom > >

Re: What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread l0f4r0
easier and that some tools help regarding the migration...  > If I keep iptables, should I add a firewall management program like > ufw or something else? Is there something like ufw for nftables? > Again you decide considering what you are comfortable with. I don't think ufw works wi

What is the best practice for a firewall for Debian Buster: iptables or nftables?

2020-06-20 Thread Tom Browder
ables, should I add a firewall management program like ufw or something else? Is there something like ufw for nftables? Thanks. Best regards, -Tom

  1   2   3   4   5   6   7   8   9   10   >