Re: reverse grep

2007-11-04 Thread Chris Keladis
On 11/4/07, Gary Kline [EMAIL PROTECTED] wrote:

 On Sun, Nov 04, 2007 at 01:12:45AM +0100, [EMAIL PROTECTED] wrote:

  How is it possible to select lines that do NOT match a specific pattern?
 
  For example, I'm connecting to 192.168.123.254 via telnet (port 23), and
  do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs
  something, the system sends me some packets, which generates output in
  tcpdump, and vice versa. I want to filter out packets of telnet access
  to the FreeBSD machine, that is, something like:
 
  tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23

   % tcpdump -nli rl0 | grep -v 192.168.123.254.23

   will print everything except the IP you have shown.

Actually, a better way to do it would be:

% tcpdump -nli rl0 'not host 192.168.123.254 and port 22'

Will prevent tcpdump from capturing your own SSH traffic.

grep -v is only a partial solution, if a switch such as '-X' (or '-x'
on some platforms) is added, grep -v will snip only the matching line,
leaving all the other lines that don't match, through, which will
generate traffic, get captured, and loop as previously, as well as
making the output look very non-sensical.

'man tcpdump' will be a better read in this case than man grep,
although the question was perhaps worded poorly, leading to responses
on grep.



Regards,

Chris.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: remote [ssh] Backspace] key gives me ^?

2007-09-15 Thread Chris Keladis
On 9/16/07, Gary Kline [EMAIL PROTECTED] wrote:

Hi Gary,

 On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
  Chad Perrin wrote:
  On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
  
  Sometimes when I ssh from a remote server and edit a file with
  vi, my [Backspace keys] are not interpretered correctly.
  Instead of erasing characters and backing up one byte and
  clearing that character my cursor moves forward.
  
  Example: typing This as thos and backspacing to the 'o'
  I'll see thos^?^?Can anybody 'splain what idiot thing i'm
  doing wrong and how to fix it?

When in a problematic SSH session try entering 'stty erase ctrl-v ctrl-?'

Then hit the backspace key and see if it behaves as normal.

If that works, then you have a terminal emulation problem, and need to
try some other terms to find one that works for your keyboard (must be
set both client AND server-side).

If you think you really need to edit the keyboard mappings then the
file is /etc/termcap but i strongly recommend trying a few different
terminals (try vt100, linux, xterm, etc) before editing that file.

Remember, they need to be set in pairs, so change the term on both
sides, disconnect, reconnect with the new term, and do your tests.



Hope it helps,

Chris.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Qemu audio with win2k3 guest.

2007-04-12 Thread Chris Keladis

Hi all,

Running QEMU 0.9.0 from the ports on a FreeBSD 6.1 host box running a
win2k3 guest.

Everything works great except audio, i was wondering if anyone has got
audio working with a win2k3 guest?

Windows sees the hardware but has trouble adding drivers.

Would appreciate any help.



Thanks,

Chris.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Vinum.

2004-07-24 Thread Chris Keladis
Hi all,

I was wondering what Vinum configurations others are using and what is
a good balance between performance/redundancy?

I've gone with RAID10 (2 striped plexes with 3 subdisks each. The
plexes are mirrored to each other).

vinum.conf:

drive a device /dev/da1s1e 
drive b device /dev/da2s1e 
drive c device /dev/da3s1e
drive d device /dev/da4s1e
drive e device /dev/da5s1e
drive f device /dev/da6s1e
volume raid10
  plex org striped 512k
sd length 0 drive a
sd length 0 drive b
sd length 0 drive c
  plex org striped 512k 
sd length 0 drive d
sd length 0 drive e
sd length 0 drive f

I havent done any profiling but it feels a little slow to me.
Thought i'd talk to others to see what their using and see if i should
restructure my volume.




Thanks,

Chris.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How many hosts can utilize one NAT server?

2004-06-23 Thread Chris Keladis
On Tue, 22 Jun 2004 17:38:44 -0500, Minnesota Slinky 

[EMAIL PROTECTED] wrote:
 
 I was wondering how many hosts can a single NAT server server?  I
 couldn't find it on the net, although I know it's there somewhere.

This would depend on the type of NAT being done, ie 1:1 static or PAT
(aka overloading).

If the latter, you can only support (around) 65,535 sessions or the
size of a 16bit port number.




Regards,

Chris.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]