Re: [CentOS] Configuring source-specific routing

2013-05-04 Thread Ljubomir Ljubojevic
On 05/04/2013 03:37 AM, Michael Mol wrote:
 I think I know what I did wrong, but it's going to be a while before I 
 can test it. (Dang, I wish I had enough spare hardware at home to set 
 up a test lab.)

You can set up VM's and create several virtual interfaces. So you use 
one virtualNIC (vNIC) to connect 2 VM's into same subnet, 2nd vNIC for 
2nd and 3rd virtual guest, and so on. That way you can create any type 
of virtual network. If you use CentOS without GUI, you can reduce used 
RAM when you run several guests.

Ljubomir Ljubojevic
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring source-specific routing

2013-05-04 Thread Rob Townley
Any neighbors with Open WiFi?
Connect Cat5 to laptop in your house and connect to neighbors open WiFi.
Woila, two ISPs.

If you have 3G, it will work better to connect it into a CradlePoint type
3G hardware gateway device and connect the laptop to the 3G Gateway.
NetworkManager would only activate my bluetooth-to-3G connection when i
turned WiFi off.  (Further, i just ran `ip route` on my android phone while
connected to 3G and WiFi and the android output was disappointing.  Does
not have both active at same time.)


On Fri, May 3, 2013 at 8:37 PM, Michael Mol mike...@gmail.com wrote:

 On 05/03/2013 05:06 PM, Ljubomir Ljubojevic wrote:
  On 05/02/2013 08:48 PM, Michael Mol wrote:

 [snip]

 
  Alternate source routing, firewall and netfilter marking of packets:
 
 
  iptables -t mangle -A PREROUTING -s 172.24.5.0/24 -j MARK --set-mark
 100 #
  iptables -t mangle -A PREROUTING -s 192.168.150.107 -j MARK --set-mark
  200 #
  iptables -t mangle -A PREROUTING -s 192.168.150.224 -j MARK --set-mark
 100
 
 
  # Local network
  iptables -t mangle -A PREROUTING -d 192.168.0.0/16 -j MARK --set-mark 20
  iptables -t mangle -A PREROUTING -d 172.16.0.0/12  -j MARK --set-mark 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 192.168.0.0/16 -j MARK
  --set-mark 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 172.16.0.0/12 -j MARK
  --set-mark 20
 
  And then something like:
 
  # echo 201 mail.out  /etc/iproute2/rt_tables
  # ip rule add fwmark 1 table mail.out
  # /sbin/ip route add default via 195.96.98.253 dev eth0 table mail.out
 
  (http://lartc.org/howto/lartc.netfilter.html).
 
  Used firewall rules are from StarOS router OS that has simple script for
  policy routing so that second part with ip rule and ip route is just a
  pointer in right direction.

 I don't figure I want to use the mangle table for this. Though thanks
 for the example code; that will come in handy for tc. Just need how to
 work that in with sanewall.

 I think I know what I did wrong, but it's going to be a while before I
 can test it. (Dang, I wish I had enough spare hardware at home to set up
 a test lab.)



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring source-specific routing

2013-05-04 Thread Rob Townley
Find some businesses that both have open wifi near each other.  Bring an
old WiFi router and a Cat5 cable.   Connect your laptop WiFi to one open
hotspot.  Connect the old WiFi router in client access mode to another open
wifi.  One ISP is to your local coffee shop.  The other ISP is to the
grocery store.


On Sat, May 4, 2013 at 6:33 AM, Rob Townley rob.town...@gmail.com wrote:

 Any neighbors with Open WiFi?
 Connect Cat5 to laptop in your house and connect to neighbors open WiFi.
 Woila, two ISPs.

 If you have 3G, it will work better to connect it into a CradlePoint type
 3G hardware gateway device and connect the laptop to the 3G Gateway.
 NetworkManager would only activate my bluetooth-to-3G connection when i
 turned WiFi off.  (Further, i just ran `ip route` on my android phone while
 connected to 3G and WiFi and the android output was disappointing.  Does
 not have both active at same time.)


 On Fri, May 3, 2013 at 8:37 PM, Michael Mol mike...@gmail.com wrote:

 On 05/03/2013 05:06 PM, Ljubomir Ljubojevic wrote:
  On 05/02/2013 08:48 PM, Michael Mol wrote:

 [snip]

 
  Alternate source routing, firewall and netfilter marking of packets:
 
 
  iptables -t mangle -A PREROUTING -s 172.24.5.0/24 -j MARK --set-mark
 100 #
  iptables -t mangle -A PREROUTING -s 192.168.150.107 -j MARK --set-mark
  200 #
  iptables -t mangle -A PREROUTING -s 192.168.150.224 -j MARK --set-mark
 100
 
 
  # Local network
  iptables -t mangle -A PREROUTING -d 192.168.0.0/16 -j MARK --set-mark
 20
  iptables -t mangle -A PREROUTING -d 172.16.0.0/12  -j MARK --set-mark
 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 192.168.0.0/16 -j
 MARK
  --set-mark 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 172.16.0.0/12 -j MARK
  --set-mark 20
 
  And then something like:
 
  # echo 201 mail.out  /etc/iproute2/rt_tables
  # ip rule add fwmark 1 table mail.out
  # /sbin/ip route add default via 195.96.98.253 dev eth0 table mail.out
 
  (http://lartc.org/howto/lartc.netfilter.html).
 
  Used firewall rules are from StarOS router OS that has simple script for
  policy routing so that second part with ip rule and ip route is just a
  pointer in right direction.

 I don't figure I want to use the mangle table for this. Though thanks
 for the example code; that will come in handy for tc. Just need how to
 work that in with sanewall.

 I think I know what I did wrong, but it's going to be a while before I
 can test it. (Dang, I wish I had enough spare hardware at home to set up
 a test lab.)



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring source-specific routing

2013-05-04 Thread Rob Townley
Somebody oughta try an external USB WiFi dongle on a laptop with internal
WiFi.  Does NetworkManager handle two WiFi devices?


On Sat, May 4, 2013 at 6:48 AM, Rob Townley rob.town...@gmail.com wrote:

 Find some businesses that both have open wifi near each other.  Bring an
 old WiFi router and a Cat5 cable.   Connect your laptop WiFi to one open
 hotspot.  Connect the old WiFi router in client access mode to another open
 wifi.  One ISP is to your local coffee shop.  The other ISP is to the
 grocery store.


 On Sat, May 4, 2013 at 6:33 AM, Rob Townley rob.town...@gmail.com wrote:

 Any neighbors with Open WiFi?
 Connect Cat5 to laptop in your house and connect to neighbors open WiFi.
 Woila, two ISPs.

 If you have 3G, it will work better to connect it into a CradlePoint type
 3G hardware gateway device and connect the laptop to the 3G Gateway.
 NetworkManager would only activate my bluetooth-to-3G connection when i
 turned WiFi off.  (Further, i just ran `ip route` on my android phone while
 connected to 3G and WiFi and the android output was disappointing.  Does
 not have both active at same time.)


 On Fri, May 3, 2013 at 8:37 PM, Michael Mol mike...@gmail.com wrote:

 On 05/03/2013 05:06 PM, Ljubomir Ljubojevic wrote:
  On 05/02/2013 08:48 PM, Michael Mol wrote:

 [snip]

 
  Alternate source routing, firewall and netfilter marking of packets:
 
 
  iptables -t mangle -A PREROUTING -s 172.24.5.0/24 -j MARK --set-mark
 100 #
  iptables -t mangle -A PREROUTING -s 192.168.150.107 -j MARK --set-mark
  200 #
  iptables -t mangle -A PREROUTING -s 192.168.150.224 -j MARK --set-mark
 100
 
 
  # Local network
  iptables -t mangle -A PREROUTING -d 192.168.0.0/16 -j MARK --set-mark
 20
  iptables -t mangle -A PREROUTING -d 172.16.0.0/12  -j MARK --set-mark
 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 192.168.0.0/16 -j
 MARK
  --set-mark 20
  iptables -t mangle -A PREROUTING -s PublicIP -d 172.16.0.0/12 -j
 MARK
  --set-mark 20
 
  And then something like:
 
  # echo 201 mail.out  /etc/iproute2/rt_tables
  # ip rule add fwmark 1 table mail.out
  # /sbin/ip route add default via 195.96.98.253 dev eth0 table mail.out
 
  (http://lartc.org/howto/lartc.netfilter.html).
 
  Used firewall rules are from StarOS router OS that has simple script
 for
  policy routing so that second part with ip rule and ip route is just a
  pointer in right direction.

 I don't figure I want to use the mangle table for this. Though thanks
 for the example code; that will come in handy for tc. Just need how to
 work that in with sanewall.

 I think I know what I did wrong, but it's going to be a while before I
 can test it. (Dang, I wish I had enough spare hardware at home to set up
 a test lab.)



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is there a good nntp client for Centos 6 that handles SSL native?

2013-05-04 Thread Rock
On Fri, 03 May 2013 12:27:01 +0200, Markus Falb wrote:


 you likely missed it because of all the language rpms.
 As rex told us ;-)

Ah, indeed! 

I had seen the personal information manager but I was looking
for it to say nntp usenet reader or something of the sort since
an nntp client isn't at all a PIM (to me).

Another mistake I made was to try to install Knode using:
$ sudo yum install knode -y
 
Instead of:
$ sudo yum install kdepim -y

It's installed now so I will test it out. 
Thanks for the help!

...log...
Installed: kdepim.x86_66:4.3.4-6.el6
Dependency Installed:
  akonadi.x86_64 0:1.2.1-2.el6
  kdelibs-experimental.x86_64 0:4.3.4-3.el6 
  kdepim-libs.x86_64 6:4.3.4-6.el6
  kdepimlibs.x86_64 0:4.3.4-4.el6
  kdepimlibs-akonadi.x86_64 0:4.3.4-4.el6
  qt-mysql.x86_64 1:4.6.2-26.el6_4


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] repeat command

2013-05-04 Thread Bart Schaefer
On Thu, May 2, 2013 at 2:05 PM, Matt matt.mailingli...@gmail.com wrote:
 There is a unix command called repeat.

 repeat 10 some_command

Someone has already mentioned tcsh, but this is also a builtin
(syntactic operator like while or for, actually) in zsh.

repeat 10 simple_command
repeat 10 do list; of; commands; done
repeat 10 { list; of; commands }
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] failed exaile install

2013-05-04 Thread Steve
I'm trying to install the exaile package on my newly upgraded CentOS 6.4 
machine.
It fails (see below) with missing dependencies on python-cddb and 
gnome-python2-gtkmozembed.

I found this thread but there does not seem to be any resolution. \
Has anyone got this installed?
Am I missing a repo?

Thanks,
Steve

# yum install exaile
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.advancedhosters.com
 * centosplus: centos.mirror.constant.com
 * contrib: mirror.ash.fastserv.com
 * epel: mirror.hiwaay.net
 * extras: centos.mirror.constant.com
 * remi: mirrors.mediatemple.net
 * rpmforge: mirror.teklinks.com
 * rpmforge-extras: mirror.teklinks.com
 * rpmforge-testing: mirror.teklinks.com
 * updates: mirror.team-cymru.org
Setting up Install Process
Resolving Dependencies
-- Running transaction check
--- Package exaile.x86_64 0:0.2.14-2.el6.rf will be installed
-- Processing Dependency: python-mutagen = 1.8 for package: 
exaile-0.2.14-2.el6.rf.x86_64
-- Processing Dependency: python-sqlite2 for package: 
exaile-0.2.14-2.el6.rf.x86_64
-- Processing Dependency: python-cddb for package: 
exaile-0.2.14-2.el6.rf.x86_64
-- Processing Dependency: gnome-python2-gtkmozembed for package: 
exaile-0.2.14-2.el6.rf.x86_64
-- Running transaction check
--- Package exaile.x86_64 0:0.2.14-2.el6.rf will be installed
-- Processing Dependency: python-cddb for package: 
exaile-0.2.14-2.el6.rf.x86_64
-- Processing Dependency: gnome-python2-gtkmozembed for package: 
exaile-0.2.14-2.el6.rf.x86_64
--- Package python-mutagen.noarch 0:1.16-2.1.el6 will be installed
--- Package python-sqlite2.x86_64 1:2.3.5-2.el6 will be installed
-- Finished Dependency Resolution
Error: Package: exaile-0.2.14-2.el6.rf.x86_64 (rpmforge)
   Requires: python-cddb
Error: Package: exaile-0.2.14-2.el6.rf.x86_64 (rpmforge)
   Requires: gnome-python2-gtkmozembed
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] failed exaile install

2013-05-04 Thread Steve
Forgot to put the thread link in:
https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flatorder=DESCtopic_id=32333forum=56#threadtop

 Steve zep...@cfl.rr.com wrote: 
 I'm trying to install the exaile package on my newly upgraded CentOS 6.4 
 machine.
 It fails (see below) with missing dependencies on python-cddb and 
 gnome-python2-gtkmozembed.
 
 I found this thread but there does not seem to be any resolution. \
 Has anyone got this installed?
 Am I missing a repo?
 
 Thanks,
 Steve
 
 # yum install exaile
 Loaded plugins: fastestmirror, refresh-packagekit, security
 Loading mirror speeds from cached hostfile
  * base: mirrors.advancedhosters.com
  * centosplus: centos.mirror.constant.com
  * contrib: mirror.ash.fastserv.com
  * epel: mirror.hiwaay.net
  * extras: centos.mirror.constant.com
  * remi: mirrors.mediatemple.net
  * rpmforge: mirror.teklinks.com
  * rpmforge-extras: mirror.teklinks.com
  * rpmforge-testing: mirror.teklinks.com
  * updates: mirror.team-cymru.org
 Setting up Install Process
 Resolving Dependencies
 -- Running transaction check
 --- Package exaile.x86_64 0:0.2.14-2.el6.rf will be installed
 -- Processing Dependency: python-mutagen = 1.8 for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 -- Processing Dependency: python-sqlite2 for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 -- Processing Dependency: python-cddb for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 -- Processing Dependency: gnome-python2-gtkmozembed for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 -- Running transaction check
 --- Package exaile.x86_64 0:0.2.14-2.el6.rf will be installed
 -- Processing Dependency: python-cddb for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 -- Processing Dependency: gnome-python2-gtkmozembed for package: 
 exaile-0.2.14-2.el6.rf.x86_64
 --- Package python-mutagen.noarch 0:1.16-2.1.el6 will be installed
 --- Package python-sqlite2.x86_64 1:2.3.5-2.el6 will be installed
 -- Finished Dependency Resolution
 Error: Package: exaile-0.2.14-2.el6.rf.x86_64 (rpmforge)
Requires: python-cddb
 Error: Package: exaile-0.2.14-2.el6.rf.x86_64 (rpmforge)
Requires: gnome-python2-gtkmozembed
  You could try using --skip-broken to work around the problem
  You could try running: rpm -Va --nofiles --nodigest
 
 
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] failed exaile install

2013-05-04 Thread SilverTip257
On Sat, May 4, 2013 at 7:59 PM, Steve zep...@cfl.rr.com wrote:

 Forgot to put the thread link in:

 https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flatorder=DESCtopic_id=32333forum=56#threadtop



  Steve zep...@cfl.rr.com wrote:
  I'm trying to install the exaile package on my newly upgraded CentOS 6.4
 machine.
  It fails (see below) with missing dependencies on python-cddb and
 gnome-python2-gtkmozembed.
 
  I found this thread but there does not seem to be any resolution. \
  Has anyone got this installed?
  Am I missing a repo?


Did you try searching (with yum) for the unmet dependencies that prevented
you from installing exaile from the RPM Forge repo?
Maybe your system had a hiccup (network or otherwise) at that exact moment
or the mirror you were hitting wasn't fully synced so the deps were missing?

If RPM Forge doesn't provide those packages (they generally provide
packages for the dependencies), you need to find a repo that has the unmet
dependencies.


Otherwise report the problem to the RPM Forge maintainers as is hinted in
the CentOS forum thread you linked to.  They'll be able for sure.


  
  Thanks,
  Steve
 
  # yum install exaile




-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos