Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
xdice
Feb 15, 2006

Crush posted:

I'm just trying to understand how to use the route object within the ip command :)

Edit: Just realized that I may have not been clear. The route seems to work just fine, but I am trying to make 192.168.1.48 a static IP for the box. I noticed that when using ip address add and then doing ip route show that it showed the IP for the box that I specified in the aforementioned ip address add command so I figured that I might be able to specify it in the route-eth0 file. DOing a bit more digging thanks to a previous reply, it looks like the answer may lie in the ifcfg-eth0 file. Looks like I will be playing with it some more :)

Paste in a copy of your ifcfg-eth0 file, should be a simple issue to identify. Generally, you'd specify "IPADDR=192.168.1.48" and "BOOTPROTO=static". I think this would work even with NetworkManager enabled (I don't know for sure, I have NM turned off on my RHEL 6 vm's.)

xdice fucked around with this message at 17:06 on Oct 13, 2012

Adbot
ADBOT LOVES YOU

3spades
Mar 20, 2003

37! My girlfriend sucked 37 dicks!

Customer: In a row?
ifcfg-$adapter is for the adapter. route-$adapter is for specific routes for said adapter.

Example use:
We have backup servers on a public subnet and with a switch side ACL we force that traffic over their private network so they are not billed for traffic of their backups. Client side we add route-eth1 with the public subnet via gateway of their eth1 (private) network.

enotnert
Jun 10, 2005

Only women bleed

QPZIL posted:


Things... things actually work! There are myriad programs that can do anything I want! It's a pretty great experience. If I can find a good recording program that can handle VSTs, I'll be in hog heaven.


check lmms, it can *be* buggy, but it tends to handle most vst/vstis alright.

http://lmms.sourceforge.net/

Crush
Jan 18, 2004
jot bought me this account, I now have to suck him off.

3spades posted:

ifcfg-$adapter is for the adapter. route-$adapter is for specific routes for said adapter.

Example use:
We have backup servers on a public subnet and with a switch side ACL we force that traffic over their private network so they are not billed for traffic of their backups. Client side we add route-eth1 with the public subnet via gateway of their eth1 (private) network.

xdice posted:

Paste in a copy of your ifcfg-eth0 file, should be a simple issue to identify. Generally, you'd specify "IPADDR=192.168.1.48" and "BOOTPROTO=static". I think this would work even with NetworkManager enabled (I don't know for sure, I have NM turned off on my RHEL 6 vm's.)
I played with ifcfg-eth0 and it seems to work. The purpose was really to try to learn about routes and how to use ip route and I think I got what I was needing out of all of it.

Thanks to everyone who helped out! :)

Doctor w-rw-rw-
Jun 24, 2008
Does anyone have any suggestion for setting up a multi-master LDAP server on puppet? I tried 389-ds, but puppeting it is horrible since you can't edit configs and kick the server (you have to edit configs that edit the configs, and the server can't be running). I don't know if I'm missing something, and if say OpenLDAP is easier for the same thing, that would be useful.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Doctor w-rw-rw- posted:

Does anyone have any suggestion for setting up a multi-master LDAP server on puppet? I tried 389-ds, but puppeting it is horrible since you can't edit configs and kick the server (you have to edit configs that edit the configs, and the server can't be running). I don't know if I'm missing something, and if say OpenLDAP is easier for the same thing, that would be useful.
Are you setting up dozens of LDAP servers? I love the idea of configuration as code, but honestly, this is one of those situations where documenting it is an order of magnitude easier than scripting it, especially through something like Puppet that doesn't have native support for ensuring that LDAP DNs are configured a certain way. (If there was a type for that, it would make this problem really easy, though.)

Xenomorph
Jun 13, 2001
Scenario:
Windows Server doing LDAP (not OpenLDAP).
Multiple Linux system using LDAP+Kerberos authentication for access on NFS shares.

I want to have one of the Linux systems also host Samba shares, using the same LDAP-based authentication (not Winbind).

When I look up Samba+LDAP, I find page after page of OpenLDAP guides.

Is this doable? I tried adding Winbind authentication in addition to LDAP on the Linux systems and ended up with users listed twice, conflicting UID/GIDs, etc.

Edit:

Since my Windows AD scheme already has Unix/Linux-compatible UID, GID, Home, and Shell for every account - can I get Winbind/Samba to use these without the *mapping* it does?

Examples:
"getent passwd" when using ldap:
xeno:*:500:500:Xeno:/home/xeno:/bin/tcsh
(correct)

"getent passwd" when using Winbind:
xeno:*:16777216:16777216:Xeno:/home/DOMAIN/xeno:/bin/false


Xenomorph fucked around with this message at 20:33 on Oct 14, 2012

Doctor w-rw-rw-
Jun 24, 2008

Misogynist posted:

Are you setting up dozens of LDAP servers? I love the idea of configuration as code, but honestly, this is one of those situations where documenting it is an order of magnitude easier than scripting it, especially through something like Puppet that doesn't have native support for ensuring that LDAP DNs are configured a certain way. (If there was a type for that, it would make this problem really easy, though.)

My CTO says we'll have two, one in the office and one in the DC so if one stops working the other we can fail over to the other.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Xenomorph posted:

Scenario:
Windows Server doing LDAP (not OpenLDAP).
Multiple Linux system using LDAP+Kerberos authentication for access on NFS shares.

I want to have one of the Linux systems also host Samba shares, using the same LDAP-based authentication (not Winbind).

When I look up Samba+LDAP, I find page after page of OpenLDAP guides.

Is this doable? I tried adding Winbind authentication in addition to LDAP on the Linux systems and ended up with users listed twice, conflicting UID/GIDs, etc.

Edit:

Since my Windows AD scheme already has Unix/Linux-compatible UID, GID, Home, and Shell for every account - can I get Winbind/Samba to use these without the *mapping* it does?

Examples:
"getent passwd" when using ldap:
xeno:*:500:500:Xeno:/home/xeno:/bin/tcsh
(correct)

"getent passwd" when using Winbind:
xeno:*:16777216:16777216:Xeno:/home/DOMAIN/xeno:/bin/false
I had a whole big spiel written up, but honestly, just put winbind after ldap in your nsswitch.conf. You don't even need it unless you're doing ephemeral mappings or supporting Well-Known SIDs.

Doctor w-rw-rw- posted:

My CTO says we'll have two, one in the office and one in the DC so if one stops working the other we can fail over to the other.
Given the particular technical limitations involved, you're wasting a pile of time trying to automate this if you have no intention of running it at scale :)

Back up your /etc/dirsrv (assuming 389 DS here) containing your cn=config LDIFs and your certificate stores, and just restore from backup and reinitialize your consumer if something goes wrong on one of the servers. I don't usually recommend this approach, since I think it's lazy, but Puppet and other configuration management solutions just don't have the plumbing to properly manage LDAP entries yet.

Vulture Culture fucked around with this message at 21:44 on Oct 14, 2012

Xenomorph
Jun 13, 2001
OK, I think I'm figuring this out. However, I'm hitting another issue.

I'm noticing the issue mentioned in the last post in this thread:
http://forums.gentoo.org/viewtopic-t-797291-start-0.html
and also mentioned here:
http://lists.samba.org/archive/samba/2006-August/123711.html

I got Winbind to pull the correct Unix attributes from AD by telling it to use "rcf2307". That works for UID (uidNumber), Home, and Shell.

For the group, instead of grabbing a user's GID (gidNumber), it's grabbing their primary group from Windows' setting for primary group. I can change each user's primary group that way, but that means I cannot see any groups with "getent group" because it is ignoring the GID from all of the groups.

Is there way to remap what Winbind is trying to read info from?

JHVH-1
Jun 28, 2002

Doctor w-rw-rw- posted:

My CTO says we'll have two, one in the office and one in the DC so if one stops working the other we can fail over to the other.

Yeah that doesn't sound like a job for puppet. Puppet is more for maintaining system states, not high availability. If you had a big fleet of machines and want to be able to roll out another one easily it would make sense to spend the extra time configuring the puppet code.


http://www.openldap.org/doc/admin24/replication.html

Sir Sidney Poitier
Aug 14, 2006

My favourite actor


Does anyone know of good guides to implementing VRFs and 802.1q on linux, particularly either ubuntu or Debian? I'm wanting to set up a monitoring system for some of our MPLS IPVPN customers.

Xenomorph
Jun 13, 2001
Looks like all the issues I've been having with samba/winbind and idmap (rfc2307 schema) may have to do with changes in Samba 3.5 and 3.6. Some people say (going by Google searches) that things worked up to 3.4, but broke after.

Is anyone here using Samba/winbind and doing UID/GID mapping from AD rfc2307?

Is there a non terrible way of working with permissions from Windows on a Samba share?

I can set permissions from Windows, but then as soon as a the server reboots or a permission is changed from Linux, I end up with "CREATOR OWNER", "CREATOR GROUP", and "Special permissions" set on a file/directory. When I view Advanced permissions, I have half a dozen entries for what use to just be a simple "user, group, other" permission setting.

code:
vfs objects = acl_xattr
store dos attributes = yes

Xenomorph fucked around with this message at 04:37 on Oct 17, 2012

Houston Rockets
Apr 15, 2006

I'm trying to alias an ssh tunnel.

Let me explain. I have a LocalForward statement in my ~/.ssh/config, bringing a remote resource over:
code:
Host XYZ
Hostname server.com
LocalForward localhost:9090 foo.server.com:8080
On my local machine, after SSHing to XYZ, I can access that resource via localhost:9090. The problem is, that I have over 100 LocalForwards, making it difficult to remember all the ports.

So now that I have access to localhost:9090, I would like to assign a virtual host to it, like foo.remote, so when I access foo.remote from any program, it will forward that request to localhost:9090, and therefore to foo.server.com:8080 over the tunnel.

Is this possible?

Doctor w-rw-rw-
Jun 24, 2008

Houston Rockets posted:

I'm trying to alias an ssh tunnel.

Let me explain. I have a LocalForward statement in my ~/.ssh/config, bringing a remote resource over:
code:
Host XYZ
Hostname server.com
LocalForward localhost:9090 foo.server.com:8080
On my local machine, after SSHing to XYZ, I can access that resource via localhost:9090. The problem is, that I have over 100 LocalForwards, making it difficult to remember all the ports.

So now that I have access to localhost:9090, I would like to assign a virtual host to it, like foo.remote, so when I access foo.remote from any program, it will forward that request to localhost:9090, and therefore to foo.server.com:8080 over the tunnel.

Is this possible?

No. Virtual hosts are a HTTP/HTTPS thing done via the "Host:" header (and even HTTPS has has problems with it). You can't select based on DNS name.

What you might be able to do is create some virtual interfaces with their own static IPs, modify your /etc/hosts file to point to those IPs, and then use that to access your forwards by name. This also allows you to bind a port multiple times, so long as no IP has more than one thing claiming the same port.

How you go about setting the routes I don't know since I never actually learned networking, just the tools that are used to configure it.

EDIT:vvvvvvvv See below. vvvvvvvv (woo! my off the wall idea was valid!)

Doctor w-rw-rw- fucked around with this message at 07:55 on Oct 18, 2012

telcoM
Mar 21, 2009
Fallen Rib

Houston Rockets posted:

I'm trying to alias an ssh tunnel.

Let me explain. I have a LocalForward statement in my ~/.ssh/config, bringing a remote resource over:
code:
Host XYZ
Hostname server.com
LocalForward localhost:9090 foo.server.com:8080
So now that I have access to localhost:9090, I would like to assign a virtual host to it, like foo.remote, so when I access foo.remote from any program, it will forward that request to localhost:9090, and therefore to foo.server.com:8080 over the tunnel.

Is this possible?

As Doctor w-rw-rw- said, "virtual hosts" is not quite the right term for this.

Furthermore, there is no easy and universal way to assign port numbers to hostnames. If you create virtual interfaces, you can use the same port number locally as the remote real service uses, which may allow you to omit the port number. But even that has a restriction: if you want to use "privileged" ports (= port numbers 0-1023), you must run your local SSH client as root.

Creating the virtual localhost interfaces (essentially IP Aliases for localhost) is simple:
code:
ifconfig lo:1 127.0.1.1
ifconfig lo:2 127.0.1.2
...
The ifconfig settings are not persistent, so you must either write them into a script that runs at boot time, or add them to the network configuration files.
Your Linux distribution probably already has some way to specify IP Aliases in network configuration files: check the distribution's documentation and support resources.

Then assign names for the virtual interfaces in /etc/hosts:
code:
127.0.1.1 foo.remote
127.0.1.2 bar.remote
...
Change your ~/.ssh/config to use the virtual interfaces and the same ports as the actual server does:
code:
Host XYZ
Hostname server.com
LocalForward foo.remote:8080 foo.server.com:8080
LocalForward bar.remote:8080 bar.server.com:8080
Since you now have multiple virtual "localhost" IP addresses to bind the local end of the tunnel to, you can now reuse the port numbers as the overlapping local port numbers are assigned to different localhost IPs.

After this, when start "ssh XYZ" and then tell any program to connect to port 8080 on foo.remote, the connection should pass through the SSH tunnel to port 8080 on foo.server.com. Likewise, connections to port 8080 on bar.remote should go to bar.server.com.

Now, if the default port number of the application can be used in the configuration above, the need to explicitly specify the port number may be removed. But even if you must still specify it, you can now standardize to a particular port number to minimize your memory workload (i.e. "when using whatever.remote, the port number shall always be 8080").

Ninja Rope
Oct 22, 2005

Wee.
Can you use dynamic forwarding/SOCKS proxying? Lots (but not all) programs support it.

Doctor w-rw-rw-
Jun 24, 2008

Ninja Rope posted:

Can you use dynamic forwarding/SOCKS proxying? Lots (but not all) programs support it.

Then each client program would have to be configured per-server. The nuance is slight, but SOCKS proxying would add access to another network, potentially enabling acces to multiple other computers on that one network, but making the forwards local is a way of adding access to other computers, all of which may be on multiple different networks.

CHEF!!!
Feb 22, 2001

Hopefully I did not miss what is blindingly obvious due to searching for the wrong phrases on Google, but is it possible to block an entire subnet (Class C 192.168.1.0/24) in iptables but leave access to two or three IPs within that subnet open? These three are all over the place so I can resort to a few range entries and not do hundreds of entries, thank God, but it'd be nice if I could basically say "block access to this /24 except for these..."

muskrat
Aug 16, 2004

CHEF!!! posted:

Hopefully I did not miss what is blindingly obvious due to searching for the wrong phrases on Google, but is it possible to block an entire subnet (Class C 192.168.1.0/24) in iptables but leave access to two or three IPs within that subnet open? These three are all over the place so I can resort to a few range entries and not do hundreds of entries, thank God, but it'd be nice if I could basically say "block access to this /24 except for these..."

Iptables rulesets are evaluated in order, and first match wins. Just put the exceptions first, e.g.:

code:
# exceptions accepted
-A INPUT -i eth0 --src 192.168.1.150 -j ACCEPT
-A INPUT -i eth0 --src 192.168.1.160 -j ACCEPT

# everything else rejected
-A INPUT -i eth0 --src 192.168.1.0/24 -j REJECT

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

For the first time in nearly 15 years, I'm giving Linux a shot as my main desktop OS. Hooray!

Anyway, what the gently caress do I have to do to get fonts in Chromium looking like they do in Chrome on Windows?

I don't know anything about fonts other than to say they look different.

I'm running Ubuntu 12.10.

babies havin rabies
Feb 24, 2006

I think having the Windows TrueType fonts might help with that. The package to install is called msttcorefonts.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Thermopyle posted:

Anyway, what the gently caress do I have to do to get fonts in Chromium looking like they do in Chrome on Windows?

Are you running stock Ubuntu with Unity? Play around with the font hinting settings in the control panel. Chromium should now respect those.

Doctor w-rw-rw-
Jun 24, 2008

babies havin rabies posted:

I think having the Windows TrueType fonts might help with that. The package to install is called msttcorefonts.
On 12.04 it's ttf-mscorefonts-installer.

babies havin rabies
Feb 24, 2006

Doctor w-rw-rw- posted:

On 12.04 it's ttf-mscorefonts-installer.

Thanks. I couldn't remember the name myself, the first result on Google was a blog post that I just noticed was created in 2005.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

babies havin rabies posted:

I think having the Windows TrueType fonts might help with that. The package to install is called msttcorefonts.

This helped a lot.


Suspicious Dish posted:

Are you running stock Ubuntu with Unity? Play around with the font hinting settings in the control panel. Chromium should now respect those.

Can't find these settings. :/

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
I don't know how Unity has their control panel structured, but they should be available in gnome-tweak-tool if nowhere else.

tarabluh
Jun 29, 2012
Is there seriously no way to make netflix work on linux without a VM?

It's kind of frustrating, I hope they stop using silverlight at some point, or at least release some sort of client.

Doctor w-rw-rw-
Jun 24, 2008

tarabluh posted:

Is there seriously no way to make netflix work on linux without a VM?

It's kind of frustrating, I hope they stop using Silverlight at some point, or at least release some sort of client.

Unlikely. The cost is the licensing cost for the encoding software per instance times the number of concurrent instances of the encoder the number of shows to transcode times the number of resolutions to encode at. It's a very real cost and certainly greater than the amount it would cost to implement the appropriate DRM module for mono, if such a thing were possible (I haven't looked at the license, it may or may not be).

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
They built Netflix for ChromeOS (actually Google built it for Netflix), so it's clear that they can do it. It's just that they won't.

Doctor w-rw-rw-
Jun 24, 2008

Suspicious Dish posted:

They built Netflix for ChromeOS (actually Google built it for Netflix), so it's clear that they can do it. It's just that they won't.

They got it running on a Linux-based solution with a known and integrated hardware and software configuration. Building in support includes testing it against configurations and modifying encode profiles to work on different hardware configurations. The amount of engineering to get it work on ChromeOS is easily a small fraction of the engineering effort it would take to engineer, test, deploy, and continuously support a solution for Linux as a whole. Porting to well-behaved and specific targets is the easiest part.

angrytech
Jun 26, 2009
I'm pretty sure that Netflix realizes that they'd get more complaints if they supported Ubuntu and not Gentoo than if they just don't support linux at all.

pseudorandom name
May 6, 2007

Netflix realizes there's not enough Linux users to be profitable and there's no way they could make working DRM.

angrytech
Jun 26, 2009

pseudorandom name posted:

Netflix realizes there's not enough Linux users to be profitable and there's no way they could make working DRM.

I thought that Android didn't use DRM?

pseudorandom name
May 6, 2007

The difficulty in getting DRM working on Android is the major reason why Netflix took so long in releasing an Android client.

Doctor w-rw-rw-
Jun 24, 2008

pseudorandom name posted:

The difficulty in getting DRM working on Android is the major reason why Netflix took so long in releasing an Android client.

Not quite. Video playing is a horror in itself. There are three separate decoders used on Android devices 2.1+, which will fail in different conditions. The VideoView, furthermore, didn't even have a resume() function until API8, and the VideoView itself has layers upon layers of issues with managing its own state. Add to that the fact that GoogleTV (API12) has buggy/incomplete support for HLS, which is different from the support in ICS+, because that was the type GoogleTV implemented independently from ICS, and the fact that a Xoom and a Nexus 7 don't behave identically, then it's clear that basically playing any video at all that was the major reason Netflix took so long in releasing an Android client. Of course, decoding any sort of encryption is sure to have complicated the process on top of that.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
Why couldn't they possibly make working DRM? I don't see the reasoning here.

Doctor w-rw-rw-
Jun 24, 2008

Suspicious Dish posted:

Why couldn't they possibly make working DRM? I don't see the reasoning here.

The point I'm getting at is that DRM isn't the only thing that makes being on every platform hard for Netflix. There are numerous challenges on every platform and many of them have to do with just getting the drat thing to play. MPlayer and VLC and their associated libraries spoil us - encoding and decoding video is a huge pain in the rear end and a gargantuan mess.

angrytech
Jun 26, 2009
So basically Redhat and Canonical have to get together and agree on DRM?

Adbot
ADBOT LOVES YOU

wolrah
May 8, 2006
what?

Suspicious Dish posted:

Why couldn't they possibly make working DRM? I don't see the reasoning here.

Useful DRM requires control of the full path from the moment decoding is started to the point the content reaches the part where it interfaces to the meatbag trying to play it. That means the kernel and audio/video drivers must also be working to secure the content. Between Protected Audio Path and HDCP if you play a Blu-ray on a Windows PC the content is hidden as well as software can do from the user until it hits the ADCs in the sound card and display interface.

Turns out that's kind of hard when you have access to the kernel source and the majority of the drivers (other than the official GPU drivers from AMD/nVidia).

That's why some Android media apps refuse to run on rooted devices, they figure they can trust the DRM in a manufacturer ROM but not anything homebrew.

wolrah fucked around with this message at 07:07 on Oct 20, 2012

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply