Re: Terminal

2016-08-02 Thread Roberto Scattini
On Fri, Jul 29, 2016 at 5:04 PM, Темир Урокбаев  wrote:

> Hello. Tell me, is there a
> comprehensive list of terminal
> commands, and where to find it
> or download.
>
>
i keep one printed copy of this in my backpack (seriously):

http://cb.vu/unixtoolbox.xhtml



-- 
Roberto Scattini


Re: Can send but can't receive mail

2015-10-19 Thread Roberto Scattini
hi,

some ISPs block outgoing traffic on port 25 (smtp) for domestic
connections, and give you credentials to use THEIR smtp server (to control
spam i think).
maybe this is your case...

On Mon, Oct 19, 2015 at 9:11 AM, Lisi Reisz  wrote:

> On Monday 19 October 2015 12:28:07 Suzanne Edelman wrote:
> > When I set up the account it fetched all the e-mails in the Junk folder,
> > Sent Mail folder, Archive, everything except the Inbox.
>
> That sounds more like a problem with the SMTP server and your mail account
> with the supplier than with KMail.  What settings have you got?
>
> Are you subscribed to this list?
>
> Lisi
>
>


-- 
Roberto Scattini


Re: more than 12G of RAM

2014-02-12 Thread Roberto Scattini
On Wed, Feb 12, 2014 at 2:25 AM, Gary Dale  wrote:

>
>>  Sorry everyone, but the memory sticks all work fine. Memtest+ shows 8G
> working when I run it against the 2x4G and the 1x8G. My system runs fine,
> except for the thrashing, with 8G. It's one application that causes the
> thrashing and Free shows the heavy swap use when it's running. With 12G,
> the thrashing pretty much stops.
>
>
gary, you should check stan's suggestion and update your BIOS to latest
version...



-- 
Roberto Scattini


Re: traffic shaper

2013-05-14 Thread Roberto Scattini
On Tue, May 14, 2013 at 8:34 AM, Pol Hallen  wrote:

> Hi folks!
>
> My memory is not good :-/
>
> I remember a module inside the kernel named "traffic shaper". Or not?
>
> If yes, where is? I searching inside kernel tree but I don't find it.
>

you can use tc tool from iproute2 package to do traffic shaping.
(i always used this tools, the kernel modules i used were for detecting p2p
traffic, with bad results...)



>
> but I discover the packages:
>
> [...]
> shaperd
> trickle
> wondershaper
> [...]
>
> What is the best way to balanced lan (multi-lan) and internet speed?
>
> ie: if a only client use lan can use all bandwidth. If 2 clients using
> lan the bandwidth goes to 50% each.
>
>
it depends on the way your clients are connecting, but maybe you should
read LARTC manual [1]


hope this helps.


[1]http://www.lartc.org/

-- 
Roberto Scattini


Re: wu-ftp substitute

2013-05-07 Thread Roberto Scattini
On Tuesday, May 7, 2013, T o n g  wrote:
> On Tue, 07 May 2013 16:26:58 +1200, Joel Wirāmu Pauling wrote:
>
>>> I'm looking for a wu-ftp substitute, i.e., an ftp server that is
>>> relatively easy to configure the anonymous upload.
>>
>> vsftpd
>
> I hope that you *did* notice that I need an ftp server that is
> *relatively easy* to configure the *anonymous upload*
>
> But these are the only pages I found talking about vsftpd anonymous upload
>

my vote goes for pure-ftpd.

incredibly simple.

-- 
Roberto Scattini


Re: multiple nic/IP in firewall

2013-01-30 Thread Roberto Scattini
On Sun, Jan 27, 2013 at 10:51 AM, Pascal Hambourg wrote:

> Roberto Scattini a écrit :
> >
> > i just cant make it work.
> > all my outgoing packets keep going through the default gateway (even if
> > they have the correct IP address, from the other nic...).
> >
> > i think i need an explanation... because i cant undestand how does the
> > routing tables know that a  packet is in response to a connection that
> came
> > from this or that interface.
>
> The answer is simple : it doesn't.
> Your routing rules are based on the source address, but as you used DNAT
> rules to change the destination address of incoming packets in the
> PREROUTING chain, the reverse operation changing back the source address
> of outgoing reply packets takes place in the POSTROUTING chain, i.e.
> after the routing decision. In order to keep track of the original
> destination address, you need to use the connection tracking facilities.
>
> One way is the one you describe below, using the CONNMARK target to mark
>  connections and reply packets and use routing rules based on the packet
> mark.
>


it is SOLVED now.

i went with the CONNMARK solution and it worked.

here i post the relevant rules:

# mark incoming packets from internet, a different mark for each isp
iptables -t mangle -A PREROUTING -i $IF2 -m state --state NEW -j CONNMARK
--set-mark 2
iptables -t mangle -A PREROUTING -i $IF1 -m state --state NEW -j CONNMARK
--set-mark 1

# retore marks on packets coming from my webserver
iptables -t mangle -A PREROUTING -i eth2 -m connmark --mark 2 -j CONNMARK
--restore-mark
iptables -t mangle -A PREROUTING -i eth2 -m connmark --mark 1 -j CONNMARK
--restore-mark

# routing tables for each interface, based on marks
ip route flush table T1
ip route add $P1_NET dev $IF1 src $IP1 table T1
ip rule add fwmark 1 table T1 prio 1024
ip route add default via $P1 table T1

ip route flush table T2
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip rule add fwmark 2 table T2 prio 1025
ip route add default via $P2 table T2


with this, both public IPs are working fine.


thank you all!

-- 
Roberto Scattini


Re: multiple nic/IP in firewall

2013-01-24 Thread Roberto Scattini
On Wed, Jan 23, 2013 at 9:45 PM, Tom Furie  wrote:

> On Tue, Jan 22, 2013 at 07:54:25PM -0300, Roberto Scattini wrote:
>
> > ~# route -n
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > XX.220.XX.176  0.0.0.0 255.255.255.255 UH0  00
> eth3
> > YY.20.YY.0  0.0.0.0 255.255.255.255 UH0  00
> eth4
> > XX.220.XX.176  0.0.0.0 255.255.255.252 U 0  00
> eth3
> > 192.168.100.0   0.0.0.0 255.255.255.0   U 0  00
> eth2
> > YY.20.YY.0  0.0.0.0 255.255.255.0   U 0  00
> eth4
> > 0.0.0.0 XX.220.XX.177  0.0.0.0 UG0  00
> eth3
>
> I just noticed here, that your YY traffic is being routed over your
> default gateway, that should probably have a next hop specific to that
> network. You also probably want to remove the YY.20.YY.0 host route.
>
> This might not solve the whole problem, but it will get some of it out
> of the way.
>
>
i dont fully understand what nexthop means...
previously carlos recommended this line:

ip route add default scope global nexthop via XX.220.XX.177 dev eth3 weight
1 nexthop via YY.20.YY.Y dev eth4 weight 1

sadly, i tried but it didnt work.
i find iproute docs a little criptic,if someone could explain me what is
the meaning of the words "default scope global nexthop" maybe i can get it
working...


i will continue with my research...


-- 
Roberto Scattini


Re: multiple nic/IP in firewall

2013-01-23 Thread Roberto Scattini
On Wed, Jan 23, 2013 at 8:00 PM, Tom Furie  wrote:

>
>
> Possibly a silly question, but something you might have overloooked -
> what does your nat table look like? Are you forwarding the traffic from
> eth4 to your web server?
>
> Cheers,
> Tom
>

tom, yes, i have the same rules that i have for my previous nic, but with
the new IP and interfaces.

i never said it, but i see the packets go out on the incorrect nic with
tcpdump. i see them coming from eth4 and see the replies going out in eth3
(with the IP of eth4)

thanks

-- 
Roberto Scattini


Re: multiple nic/IP in firewall

2013-01-23 Thread Roberto Scattini
hi again,

Dňa Wed, 23 Jan 2013 00:07:51 -0300 "Carlos Miranda Molina
> (Mstaaravin)"  napísal:
>
> > :~# ip route add default scope global nexthop via XX.220.XX.177 dev
> > eth3 weight 1 nexthop via YY.20.YY.Y dev eth4 weight 1
> > :~# ip route add '127.0.0.0/8' dev lo table T1
> > :~# ip route add '127.0.0.0/8' dev lo table T2
> > :~# ip route add '192.168.100.0/24' dev eth2 table T1
> > :~# ip route add '192.168.100.0/24' dev eth2 table T2
> >
>

i just cant make it work.
all my outgoing packets keep going through the default gateway (even if
they have the correct IP address, from the other nic...).

i think i need an explanation... because i cant undestand how does the
routing tables know that a  packet is in response to a connection that came
from this or that interface.
i mean... all my packets are coming from "internet", but they are coming
from two different nic, with completely different ip addresses. so, the
traffic going out is pointing to an ip address that is in the internet, and
not in the same subnet of any nic, so that's why it gets delivered through
my default gateway.
how would my routing tables deliver a packet trough a nic that doesnt match
the destination network?

i also tried a different approach, found somewhere with google, that is
more in line with my understanding of the problem.
basically, it marks the packets so they can be routed back to the same nic
they came in:

ip route flush table T1
ip rule del fwmark 101 table T1
ip route add table T1 default via YY.20.YY.3
ip rule add fwmark 101 table T1
ip route flush table T2
ip rule del fwmark 102 table T2
ip route add table T2 default via XX.220.XX.178
ip rule add fwmark 102 table T2

# Ensure traffic in one interface goes back out the same interface
iptables -t mangle -F PREROUTING
iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
iptables -t mangle -A PREROUTING -m mark ! --mark 0 -j ACCEPT
iptables -t mangle -A PREROUTING -i eth4 -m state --state NEW -j MARK
--set-mark 101
iptables -t mangle -A PREROUTING -i eth3 -m state --state NEW -j MARK
--set-mark 102


but it doesnt work...

any help is really appreciated...


Roberto


Re: multiple nic/IP in firewall

2013-01-22 Thread Roberto Scattini
On Tue, Jan 22, 2013 at 9:46 PM, Carlos Miranda Molina (Mstaaravin) <
mstaara...@gmail.com> wrote:

>
>>
> 1. the second interface, in on same subnet as the first interface?
>
no, they are completely different


> 2. the gateway for second interface is different as the first
> interface?
>
yeah, both are different too

thanks


ps: i think we both live in argentina?

-- 
Roberto Scattini


raid recomendation

2012-12-06 Thread Roberto Scattini
hi, i have a new dell r720 server with 5 600gb disks.
his function will be a postgresql server (the size of the databases is
really small with 600gb we should be fine for a long time).

which raid configuration would you recommend?
i was thinking in raid 5 with all five disks but i am not a expert.

i prefer redundandcy against size (i mean, i can sacrifice space). and i
dont want performance degradation for doing raid with an incorrect number
of disks.

thanks in advance!

-- 
Roberto Scattini


Re: minimal HTTP server recommends

2012-07-05 Thread Roberto Scattini
On Wed, Jul 4, 2012 at 12:10 AM, T o n g  wrote:

> Hi,
>
> Just noticed that the thttpd package that I'm using has been removed from
> Debian repo early this year.
>
> It suits my personal web server well, because "It has an executable
> memory size of about 50 kB. . . it is uniquely suited to service high
> volume requests for static data" (http://en.wikipedia.org/wiki/Thttpd)


maybe mongoose?

http://code.google.com/p/mongoose/


really simple, it can run CGI also



-- 
Roberto Scattini


Re: www site monitor

2012-02-10 Thread Roberto Scattini
On Fri, Feb 10, 2012 at 2:29 PM, pch0317  wrote:

> Hi list,
>
> I must monitor remote site to check that it works. I refresh this site
> from time to time in web browser. Can I automate this process?
> I search for service which:
> - monitors *remote* WWW site (via http request)
> - when remote site doesn't respond for example 5 minutes it notify some
> person (via e-mail or SMS).
>
> Is that service available in Debian repository? Or is there any commercial
> product which do that?
>
>

you can try "mon".
easier setup than nagios, but few options.

http://mon.wiki.kernel.org


-- 
Roberto Scattini


Re: debug apache-php dump

2011-10-14 Thread Roberto Scattini
On Fri, Oct 14, 2011 at 6:18 PM, David Sastre  wrote:
> On Tue, Oct 04, 2011 at 09:36:59AM -0300, Roberto Scattini wrote:
>> ...
>> it is a standard package installation, apache2, php5 and
>> libapache2-mod-php5. i also
>> installed apache2-dbg, libapr1-dbg, libaprutil1-dbg and php5-dbg.
>>
>>
> You need apache2-dbg. Also, check this bugreport¹.
>

hi david, thanks for your response!

you can see that i already have apache2-dbg installed, and gdb seems
to be loading some symbols from /usr/lib/debug/...


> ¹http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346409
>

this seems to clarify a little... it will not work... just like it says...

:(

i will try to build gdb with PIE support by myself...

thanks!!!


-- 
Roberto Scattini


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAApYZY_VdR1d1s4Q3eiEj4svesd56oTLR+k=ukhxqp03bit...@mail.gmail.com



Re: test

2011-10-05 Thread Roberto Scattini
On Wed, Oct 5, 2011 at 9:59 AM, Richard wrote:

> Hi
> My ISP had problems yesterday and some this morning, I've sent a couple of
> posts but I'm not seeing them.
> If this does get through, can someone answer please
> Thanks
>


working!
;)



>
> --
> Best wishes / 73
>
> e-mail: rich...@g8jvm.com
> Richard Bown
> nil carborundum a illegitemis
>
> ##
> Ham Call G8JVM . OS Fedora FC15 x86_64 on a Dual core AMD Athlon 4400, 4 GB
> RAM
> Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W ( degs mins )
> QRV HF + VHF Microwave 23 cms:140W,13 cms:100W,6 cms:10W & 3 cms:5W
>
> ##
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/20111005135913.58fbc...@bigun.g8jvm.com
>
>


-- 
Roberto Scattini


debug apache-php dump

2011-10-04 Thread Roberto Scattini
hi list,

i want to know how can i "bind" php symbols to apache in order to debug an
apache2 coredump file.

i upgraded my system to debian squeeze, and suddenly my web application
started to generate "segmentation faults" randomly.
it is a standard package installation, apache2, php5 and
libapache2-mod-php5. i also
installed apache2-dbg, libapr1-dbg, libaprutil1-dbg and php5-dbg.

i generated an apache coredump file, but when i open dump file with gdb the
only i get is this:

# gdb /usr/sbin/apache2 /var/cache/apache2/core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: The current binary is a PIE (Position Independent Executable),
which
GDB does NOT currently support.  Most debugger features will fail if used
in this session.

Reading symbols from /usr/sbin/apache2...Reading symbols from
/usr/lib/debug/usr/sbin/apache2-mpm-prefork...done.
(no debugging symbols found)...done.
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal 11, Segmentation fault.
#0  0xb6edfcd5 in ?? ()
(gdb) bt full
#0  0xb6edfcd5 in ?? ()
No symbol table info available.
#1  0xb6e9f628 in ?? ()
No symbol table info available.
#2  0xb626b47a in ?? ()
No symbol table info available.
#3  0xb6ecb2b4 in ?? ()
No symbol table info available.
#4  0xb6273500 in ?? ()
No symbol table info available.
#5  0xb6ebfe00 in ?? ()
No symbol table info available.
#6  0xb6ecae88 in ?? ()
No symbol table info available.
#7  0xb6ebe641 in ?? ()
No symbol table info available.
#8  0xb6e63095 in ?? ()
No symbol table info available.
#9  0xb6f5064c in ?? ()
No symbol table info available.
#10 0xb77f5521 in ?? ()
No symbol table info available.
#11 0xb77f9326 in ?? ()
No symbol table info available.
#12 0xb7808ca8 in ?? ()
No symbol table info available.
#13 0xb78057c8 in ?? ()
No symbol table info available.
#14 0xb77fdda1 in ?? ()
No symbol table info available.
#15 0xb780e9ac in ?? ()
No symbol table info available.
#16 0xb780ed0e in ?? ()
No symbol table info available.
#17 0xb780fcbb in ?? ()
No symbol table info available.
#18 0xb77dff8a in ?? ()
No symbol table info available.
#19 0xb75c8c76 in ?? ()
No symbol table info available.
#20 0xb77dec01 in ?? ()
No symbol table info available.
(gdb) quit


i am completely newbie with this thing of debugging...  what am i doing
wrong?


any help is welcome!!



-- 
Roberto Scattini