Re: CR/LF

2022-12-10 Thread tomas
On Sun, Dec 11, 2022 at 12:02:59AM -0500, Jim Popovitch wrote: [...] > welp. > > Hope you have a good day tomorrow, To be fair, Greg takes those things seriously. And is extremely helpful, see his writeups [1]. Recommended reading. And he has the sharpest eyes around here in things shell. I t

Re: nftables transparent proxy for outbound connections on a server

2022-12-10 Thread Andre Rodier
Good morning, all. Is there anyone around to help me to setup a transparent proxy on Debian, please ? I have tinyproxy running on my server, and I would like, with nftables, to intercept any outbound web traffic (tcp ipv4.ipv6), and to redirect to the proxy on 127.0.0.1:. So far, I have se

Re: Debian failed

2022-12-10 Thread David Wright
On Sun 11 Dec 2022 at 04:39:02 (+0100), hw wrote: > > How can Debian be so old? Maturity takes a little ageing. Cheers, David.

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread David Wright
On Sat 10 Dec 2022 at 20:45:37 (-0500), pa...@quillandmouse.com wrote: > On Sun, 11 Dec 2022 09:49:54 +1100 > David wrote: > > > On Sat, 10 Dec 2022 at 19:05, wrote: > > > On Fri, 9 Dec 2022 20:39:34 -0600 Greg Marks > > > wrote: > > [snip] > > > > > > I don't know the RFCs involved, but I'

Re: CR/LF

2022-12-10 Thread David Wright
On Sat 10 Dec 2022 at 23:16:12 (-0500), Jim Popovitch wrote: > The following > will add a CR/LF: > > TEST=`ssh -o LogLevel=QUIET -t user@server "echo -n ''"`; echo ${TEST} > > Using -n on the 2nd echo would remove a necessary CR/LF on any remote > cmd that did produce output. I didn't give m

Re: CR/LF

2022-12-10 Thread Jim Popovitch
On Sat, 2022-12-10 at 23:44 -0500, Greg Wooledge wrote: > On Sat, Dec 10, 2022 at 11:16:12PM -0500, Jim Popovitch wrote: > > On Sat, 2022-12-10 at 22:10 -0500, Greg Wooledge wrote: > > > On Sat, Dec 10, 2022 at 10:07:48PM -0500, Jim Popovitch wrote: > > > > > > > Why does this produce a CR/LF > >

Re: CR/LF

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 11:16:12PM -0500, Jim Popovitch wrote: > On Sat, 2022-12-10 at 22:10 -0500, Greg Wooledge wrote: > > On Sat, Dec 10, 2022 at 10:07:48PM -0500, Jim Popovitch wrote: > > > > > Why does this produce a CR/LF > > There is still no CR. At all. Ever. This is not Microsoft Wind

Re: CR/LF

2022-12-10 Thread Jim Popovitch
On Sat, 2022-12-10 at 22:10 -0500, Greg Wooledge wrote: > On Sat, Dec 10, 2022 at 10:07:48PM -0500, Jim Popovitch wrote: > > On Sat, 2022-12-10 at 20:35 -0600, David Wright wrote: > > > On Sat 10 Dec 2022 at 21:01:29 (-0500), Jim Popovitch wrote: > > > > Why does this produce a CR/LF > > > > >

Re: Debian failed

2022-12-10 Thread hw
On Mon, 2022-12-05 at 16:20 +0800, Bret Busby wrote: > On 05/12/2022 16:14, hede wrote: > > On 04.12.2022 23:09 hw wrote: > > > On Sun, 2022-12-04 at 15:00 +, Andrew M.A. Cater wrote: > > > > On Sun, Dec 04, 2022 at 03:52:31PM +0100, hw wrote: > > > > [...] > > > > How did you install - what im

Re: Debian failed

2022-12-10 Thread hw
On Mon, 2022-12-05 at 09:14 +0100, hede wrote: > On 04.12.2022 23:09 hw wrote: > > On Sun, 2022-12-04 at 15:00 +, Andrew M.A. Cater wrote: > > > On Sun, Dec 04, 2022 at 03:52:31PM +0100, hw wrote: > > > [...] > > > How did you install - what image, what steps? > > > > debian-11.5.0-amd64-netin

Re: Debian failed

2022-12-10 Thread Jeffrey Walton
On Sat, Dec 10, 2022 at 10:39 PM hw wrote: > On Sun, 2022-12-04 at 18:42 -0500, Jeffrey Walton wrote: > > ... > > Yeah, a newer kernel is probably worth a try. The 5.8 kernel may work. > > The 5.15 kernel will work based on my experience. > > > > For completeness, here is the mini-pc I was having

Re: Debian failed

2022-12-10 Thread hw
On Sun, 2022-12-04 at 18:42 -0500, Jeffrey Walton wrote: > On Sun, Dec 4, 2022 at 5:30 PM hw wrote: > > > > On Sun, 2022-12-04 at 20:58 +, Andrew M.A. Cater wrote: > > > On Sun, Dec 04, 2022 at 09:49:59PM +0100, hw wrote: > > > > On Sun, 2022-12-04 at 13:58 -0500, Jeffrey Walton wrote: > > >

Re: CR/LF

2022-12-10 Thread Charles Curley
On Sat, 10 Dec 2022 21:01:29 -0500 Jim Popovitch wrote: > Why does this produce a CR/LF > > ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo > ${TEST} > > whilst this same command does not: > > ~$ ssh -o LogLevel=QUIET -t user@server "echo -n ''" Because the second echo i

Re: CR/LF

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 10:07:48PM -0500, Jim Popovitch wrote: > On Sat, 2022-12-10 at 20:35 -0600, David Wright wrote: > > On Sat 10 Dec 2022 at 21:01:29 (-0500), Jim Popovitch wrote: > > > Why does this produce a CR/LF > > > > > >  ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); ec

Re: CR/LF

2022-12-10 Thread Jim Popovitch
On Sat, 2022-12-10 at 20:35 -0600, David Wright wrote: > On Sat 10 Dec 2022 at 21:01:29 (-0500), Jim Popovitch wrote: > > Why does this produce a CR/LF > > > >  ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo ${TEST} > > Try echo -n ${TEST} at the end. Thanks, that works if th

Re: CR/LF

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 08:35:59PM -0600, David Wright wrote: > On Sat 10 Dec 2022 at 21:01:29 (-0500), Jim Popovitch wrote: > > Why does this produce a CR/LF > > > > ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo ${TEST} > > Try echo -n ${TEST} at the end. You mean printf %

Re: CR/LF

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 09:01:29PM -0500, Jim Popovitch wrote: > Why does this produce a CR/LF > > ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo ${TEST} It does not produce a carriage return, unless you're on Windows. The second echo command (the local one) produces a newli

Re: CR/LF

2022-12-10 Thread David Wright
On Sat 10 Dec 2022 at 21:01:29 (-0500), Jim Popovitch wrote: > Why does this produce a CR/LF > > ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo ${TEST} Try echo -n ${TEST} at the end. > whilst this same command does not: > > ~$ ssh -o LogLevel=QUIET -t user@server "echo -

CR/LF

2022-12-10 Thread Jim Popovitch
Why does this produce a CR/LF ~$ TEST=$(ssh -o LogLevel=QUIET -t user@server "echo -n ''"); echo ${TEST} whilst this same command does not: ~$ ssh -o LogLevel=QUIET -t user@server "echo -n ''" tia, -Jim P.

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread paulf
On Sun, 11 Dec 2022 09:49:54 +1100 David wrote: > On Sat, 10 Dec 2022 at 19:05, wrote: > > On Fri, 9 Dec 2022 20:39:34 -0600 Greg Marks > > wrote: [snip] > > > I don't know the RFCs involved, but I'm guessing they mandate or > > suggest this treatment. > > Here's a reference describing 'mb

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread David
On Sat, 10 Dec 2022 at 19:05, wrote: > On Fri, 9 Dec 2022 20:39:34 -0600 Greg Marks wrote: > > In a recent instance, the body of the e-mail contained a line > > beginning with the word "From"; the sendmail program prefixed the > > line with the character ">" and a space (evidently interpreting >

Re: Xen backup and restore

2022-12-10 Thread Andy Smith
Hello, On Wed, Dec 07, 2022 at 09:27:27AM +0100, Toth Zoltan wrote: > I am looking for a solution to backup and restore xen domU under > debian, but I did not anything. What does "backup and restore" mean to you in this context? Describe a scenario and what you would like to happen. Depending on

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread David Wright
On Sat 10 Dec 2022 at 08:24:05 (+0200), Teemu Likonen wrote: > * 2022-12-09 20:39:34-0600, Greg Marks wrote: > > > > I occasionally send e-mail from the command line via Postfix, using a > > script containing the command > > > >/usr/sbin/sendmail -oi -f -t < file > > Is there a way to tell

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread Miguel A. Vallejo
I remember some e-mail programs automatically add an extra space in front of a From in the message body if any line starts with From. Probably Thunderbird is one of them. to...@tuxteam.de wrote: > > On Sat, Dec 10, 2022 at 08:36:39AM -0500, Greg Wooledge wrote: > > [...] > > > Technically, it's th

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread debian-user
> On Sat, Dec 10, 2022 at 02:57:42AM -0500, pa...@quillandmouse.com > wrote: > > You don't want to do this. Consider an MUA which stores your mail in > > "mbox" format-- one email right after another in one file. The > > delimiter is a line which starts at the left margin with the word > > "From".

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread tomas
On Sat, Dec 10, 2022 at 08:36:39AM -0500, Greg Wooledge wrote: [...] > Technically, it's the 5-character sequence "From " (including the space) > that matters in mbox formats. If you begin a line with "Fromage" [...] I thusly propose to drop the '>' escaping of "From" and change every From at a

Re: Monitor traffic on a port.

2022-12-10 Thread john doe
On 12/10/22 14:31, Greg Wooledge wrote: On Fri, Dec 09, 2022 at 11:25:36PM -0600, pe...@easthope.ca wrote: How is traffic on a specific port monitored now? The only tool I've ever used for that is tcpdump. If you need UDP then I don't know what to recommend. Traffic monitoring is not my fort

Re: Monitor traffic on a port.

2022-12-10 Thread Vukovics Mihály
Hi, what about tcpdump? You can check the traffic or even dump and later analyse it with wireshark(or similar). -- Köszönettel: Vukovics Mihály On 2022. 12. 10. 16:12, Michel Verdier wrote: Le 10 décembre 2022 peter a écrit : Appears nettools is deprecated. How is traffic on a specific po

Re: Monitor traffic on a port.

2022-12-10 Thread Michel Verdier
Le 10 décembre 2022 peter a écrit : > Appears nettools is deprecated. > > How is traffic on a specific port monitored now? You could use wireshark. It can analyse network with restriction on some filters including selecting specific port.

Re: Monitor traffic on a port.

2022-12-10 Thread peter
In-reply-to: <20221210092451.4b3a5...@hpusdt5.der-he.de> References: <2e94402a808bb7535f81cb604e0e2...@easthope.ca> <20221210092451.4b3a5...@hpusdt5.der-he.de> From: hede Date: Sat, 10 Dec 2022 09:24:51 +0100 ... iptraf-ng ... Installed it and ran iptraf. If confirms no traffic on

Re: bash read and field separator

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 07:18:13PM +0700, Max Nikulin wrote: > It took some time for me to realize why you case is different. Please, try > > cd tmp > find leaf leaf/ leaf// -printf '%T@/%TY-%Tm-%Td/%TT/%p\0' | while IFS=/ read > -rd '' _ day time path; do printf '%s\n' "$path"; done unicorn:~/tm

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread Greg Wooledge
On Sat, Dec 10, 2022 at 02:57:42AM -0500, pa...@quillandmouse.com wrote: > You don't want to do this. Consider an MUA which stores your mail in > "mbox" format-- one email right after another in one file. The > delimiter is a line which starts at the left margin with the word > "From". Technically

Re: Monitor traffic on a port.

2022-12-10 Thread Greg Wooledge
On Fri, Dec 09, 2022 at 11:25:36PM -0600, pe...@easthope.ca wrote: > How is traffic on a specific port monitored now? The only tool I've ever used for that is tcpdump. If you need UDP then I don't know what to recommend. Traffic monitoring is not my forte.

RDD Process (firefox)

2022-12-10 Thread songbird
this is a prime example of a lack of common sense. firefox developers decided to break out the decode process so that it shows up under the list of running processes as "RDD Process". well of course it is a process. "firefox Remote Data Decoder". voila! useful and you don't have to wonder wh

Re: bash read and field separator

2022-12-10 Thread Max Nikulin
On 09/12/2022 23:20, Greg Wooledge wrote: On Fri, Dec 09, 2022 at 10:23:29PM +0700, Max Nikulin wrote: find dir dir/ dir// -printf '%T@/%TY-%Tm-%Td/%TT/%p\0' | sort -zn | while IFS=/ read -rd '' _ day time path; do printf '%s %s %s\n' "$day" "${time%.*}" "$path"; done | sed -

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread Thomas Schmitt
Hi, pa...@quillandmouse.com wrote: > [...] any other line which starts with "From" must > be "armored". And the way you do that is to precede it with "> ". > I don't know the RFCs involved, but I'm guessing they mandate or > suggest this treatment. It does not look like being fully specified by a

nftables transparent proxy for outbound connections on a server

2022-12-10 Thread Andre Rodier
Hello, all. I have tinyproxy running on my server, and I would like, with nftables, to intercept any outbound web traffic (tcp ipv4.ipv6), and to redirect to the proxy on 127.0.0.1:. So far, I have seen these examples online: > ... chain prerouting { type nat hook prerouting priority

Re: Monitor traffic on a port.

2022-12-10 Thread hede
On Fri, 09 Dec 2022 23:25:36 -0600 pe...@easthope.ca wrote: > Appears nettools is deprecated. > How is traffic on a specific port monitored now? Do you mean netstat? There's "ss" in the iproute2 package. But I wouldn't call either of them "traffic monitoring" tools. None of the net-tools. Wi

Re: e-mail with line in body beginning with "From"

2022-12-10 Thread paulf
On Fri, 9 Dec 2022 20:39:34 -0600 Greg Marks wrote: > I occasionally send e-mail from the command line via Postfix, using a > script containing the command > >/usr/sbin/sendmail -oi -f -t < file > > In a recent instance, the body of the e-mail contained a line > beginning with the word "F