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
evol262
Nov 30, 2010
#!/usr/bin/perl
This doesn't actually address any of your port 80 concerns, and whoever wrote it clearly doesn't realize that loopback traffic doesn't even touch iptables (which is common with shotgun-debugging types).

Did you even try the last rules we gave you?

Is denying all traffic to the internet necessary, or just port 80?

Which one says there's an error on line 1?

Adbot
ADBOT LOVES YOU

GreenBuckanneer
Sep 15, 2007

evol262 posted:

This doesn't actually address any of your port 80 concerns, and whoever wrote it clearly doesn't realize that loopback traffic doesn't even touch iptables (which is common with shotgun-debugging types).

Did you even try the last rules we gave you?

Is denying all traffic to the internet necessary, or just port 80?

Which one says there's an error on line 1?

Seems I need to deny traffic, all traffic to the internet to the linux box, however, I do need to allow pretty much everything between the linux computer and another computer in terms of ports. Port 80/22 would allow me putty access and connection to nginx (not apache like I thought), but part of the web access seemingly needs other ports open because the connection to the site on the linux box wont resolve properly, such as ports that AMQP uses. (however If I open up the ports for that, amqp still complains that the target machine is actively blocking the connection, so that's kind of stumping me)

I did try the rules you suggested, though iptables complains about a "bad built-in chain name" when trying to assign DROP to HTTP_OUTBOUND

For the "error on line 1" is for the deny.ip file.

Here is the unmodified current iptables I'm currently working with:

code:
[app-admin@localhost ~]$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ES                             TABLISHED
ACCEPT     all  --  anywhere             anywhere
INPUT_direct  all  --  anywhere             anywhere
INPUT_ZONES_SOURCE  all  --  anywhere             anywhere
INPUT_ZONES  all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere
REJECT     all  --  anywhere             anywhere             reject-with icmp-h                             ost-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ES                             TABLISHED
ACCEPT     all  --  anywhere             anywhere
FORWARD_direct  all  --  anywhere             anywhere
FORWARD_IN_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_IN_ZONES  all  --  anywhere             anywhere
FORWARD_OUT_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_OUT_ZONES  all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere
REJECT     all  --  anywhere             anywhere             reject-with icmp-h                             ost-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
OUTPUT_direct  all  --  anywhere             anywhere

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination
FWDI_public  all  --  anywhere             anywhere            [goto]
FWDI_public  all  --  anywhere             anywhere            [goto]

Chain FORWARD_IN_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain FORWARD_OUT_ZONES (1 references)
target     prot opt source               destination
FWDO_public  all  --  anywhere             anywhere            [goto]
FWDO_public  all  --  anywhere             anywhere            [goto]

Chain FORWARD_OUT_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain FORWARD_direct (1 references)
target     prot opt source               destination

Chain FWDI_public (2 references)
target     prot opt source               destination
FWDI_public_log  all  --  anywhere             anywhere
FWDI_public_deny  all  --  anywhere             anywhere
FWDI_public_allow  all  --  anywhere             anywhere

Chain FWDI_public_allow (1 references)
target     prot opt source               destination

Chain FWDI_public_deny (1 references)
target     prot opt source               destination

Chain FWDI_public_log (1 references)
target     prot opt source               destination

Chain FWDO_public (2 references)
target     prot opt source               destination
FWDO_public_log  all  --  anywhere             anywhere
FWDO_public_deny  all  --  anywhere             anywhere
FWDO_public_allow  all  --  anywhere             anywhere

Chain FWDO_public_allow (1 references)
target     prot opt source               destination

Chain FWDO_public_deny (1 references)
target     prot opt source               destination

Chain FWDO_public_log (1 references)
target     prot opt source               destination

Chain HTTP_OUTBOUND (0 references)
target     prot opt source               destination

Chain INPUT_ZONES (1 references)
target     prot opt source               destination
IN_public  all  --  anywhere             anywhere            [goto]
IN_public  all  --  anywhere             anywhere            [goto]

Chain INPUT_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain INPUT_direct (1 references)
target     prot opt source               destination

Chain IN_public (2 references)
target     prot opt source               destination
IN_public_log  all  --  anywhere             anywhere
IN_public_deny  all  --  anywhere             anywhere
IN_public_allow  all  --  anywhere             anywhere

Chain IN_public_allow (1 references)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             224.0.0.251          udp dpt:mdns ctsta                             te NEW
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-ns                              ctstate NEW
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-dg                             m ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:netbios-ss                             n ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:microsoft-                             ds ctstate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http ctsta                             te NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh ctstat                             e NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https ctst                             ate NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:amqp ctsta                             te NEW

Chain IN_public_deny (1 references)
target     prot opt source               destination

Chain IN_public_log (1 references)
target     prot opt source               destination

Chain OUTPUT_direct (1 references)
target     prot opt source               destination

edit:

Part of the problem was not converting the allow/deny files to unix EOL from windows :downs:. However, when running the apply one, it gives me an error on COMMIT... ugh

GreenBuckanneer fucked around with this message at 16:20 on Jul 15, 2015

evol262
Nov 30, 2010
#!/usr/bin/perl

GreenBuckanneer posted:

Seems I need to deny traffic, all traffic to the internet to the linux box, however, I do need to allow pretty much everything between the linux computer and another computer in terms of ports. Port 80/22 would allow me putty access and connection to nginx (not apache like I thought), but part of the web access seemingly needs other ports open because the connection to the site on the linux box wont resolve properly, such as ports that AMQP uses. (however If I open up the ports for that, amqp still complains that the target machine is actively blocking the connection, so that's kind of stumping me)
It would help a lot if you update your requirements when you make a new post.

So you need to allow local subnets and block outbound access? Or just one IP?

GreenBuckanneer posted:

I did try the rules you suggested, though iptables complains about a "bad built-in chain name" when trying to assign DROP to HTTP_OUTBOUND
Because it's not a built-in chain. "iptables -N HTTP_OUTBOUND" adds it, and it was the very first command on the "if you can add rules" part.

GreenBuckanneer posted:

For the "error on line 1" is for the deny.ip file.
It doesn't even matter. The bits below are very obviously from a firewalld configuration on Fedora or EL7, and the crap you've grifted from the internet is from a Debian-alike (probably Ubuntu) that has ufw. ufw and firewalld both ultimately write iptables rules, but in very, very different ways. There are better ways to do this with firewalld, and firewalld will stomp whatever you do to iptables when it reboots anyway, because it's not ufw, and disabling ufw does nothing to firewalld.

Please list your actual requirements. All of them. With ports. It doesn't matter if it's nginx or apache. It matters if it's port 80 or not. And your distro, because that matters now.

Is there an admin at your shop who actually has a clue? Can you ask him to do it?

program666
Aug 22, 2013

A giant carnivorous dinosaur
The google capcha never trusts my linux. On windows I rarely ever receive the pictures pop up but on my gentoo install it shows up 100% of the time. Is this happening to anyone else?

Truga
May 4, 2014
Lipstick Apathy
Because linux users are either scripts or hackers.

program666
Aug 22, 2013

A giant carnivorous dinosaur
I did use some program that made a huge amount of requests to google, that ended up blocking the access of the entirety of the big company I was working in as a 3rd party once a long time ago, so that holds true

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.
Can I disable NX in Ubuntu 14.04+ without a kernel rebuild? I keep getting Wine errors on things that may JIT-generate code where it blows up with a page fault, and the instruction pointer equals the faulting address, and I want to see if turning NX off happens to make that problem go away.

spankmeister
Jun 15, 2008






I think you'd need to recompile wine, not the kernel.

Maybe you could disable in your bios?

Vulture Culture
Jul 14, 2003

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

spankmeister posted:

I think you'd need to recompile wine, not the kernel.

Maybe you could disable in your bios?
According to the docs, Ubuntu ignores the BIOS setting entirely since way back in 11.04.

e: and I think you're right, seeing as I didn't find any kernel options to disable re: NX protection; I assumed it was something that the ELF binary loader checked for in /proc or something. I'm gonna try rebuilding wine-staging with -fno-stack-protector -z execstack -O0 and see if any of my problems get any better

e2: My issues aren't totally gone, but this user experience has gone from "loving awful" to "totally acceptable" with the rebuilt wine-staging. Yay!

Vulture Culture fucked around with this message at 00:10 on Jul 18, 2015

Heran Bago
Aug 18, 2006



In Mate or anything else really is there a way to make the panel not show the names of open things? I'd like the active windows part of a panel to look and behave somewhat like in Windows 8. Google is telling me this is probably not going to happen.

Death Vomit Wizard
May 8, 2006
Bottom Feeder

Death Vomit Wizard posted:

I am trying to hold back package foo from updating in Fedora 22. The literature says to add
code:
exclude=foo*
to dnf.conf and yum.conf. I tried this, but it seems to have no effect? That is, it still tries to upgrade foo when I run
code:
dnf update
Am I doing something wrong?

Well, just in case anyone was on the edge of their seat, I have this working now via the -x command line option.
code:
dnf -x foo* update
seems to accomplish what I was trying to do. Yay for reading the man page!

midnightclimax
Dec 3, 2011

by XyloJW

Heran Bago posted:

In Mate or anything else really is there a way to make the panel not show the names of open things? I'd like the active windows part of a panel to look and behave somewhat like in Windows 8. Google is telling me this is probably not going to happen.

Not using Mate, but I have the same complaint about Cinnamon. If you don't care about either of those, XFCE is able to do just that.

GreenBuckanneer
Sep 15, 2007

evol262 posted:

Is there an admin at your shop who actually has a clue? Can you ask him to do it?

It's actually fine now, we found another way to solve what we were trying to do.

It's not really something at a shop, it's testing a hw/software product before release for a bug we found in the wild. It was more of something we were trying to do to induce the bug (partially because the bug report didn't contain logs, or anything helpful...) and that was the best idea I had at the time given the resources.

Thank you for the help tho overall.

Heran Bago
Aug 18, 2006



midnightclimax posted:

Not using Mate, but I have the same complaint about Cinnamon. If you don't care about either of those, XFCE is able to do just that.

I read something about that, but after using xfce for a few minutes I just couldn't stand the default look of anything and couldn't find the themes. Thanks for the recommendation, maybe I'll try it again soon.

long-ass nips Diane
Dec 13, 2010

Breathe.

I'm looking at trying to get an infosec job when I get out of college, and literally everyone mentions learning Linux as a thing that's really important for me to do. I've already noticed a lot of tutorials and exercises assuming some Linux knowledge as well.

I'm starting from absolutely zero knowledge, so will putting Gnome/Fedora on a virtual machine be enough to play with and learn the basics or should I just set up a dual boot with that or some other distribution?

Powered Descent
Jul 13, 2008

We haven't had that spirit here since 1969.

Swagger Dagger posted:

I'm looking at trying to get an infosec job when I get out of college, and literally everyone mentions learning Linux as a thing that's really important for me to do. I've already noticed a lot of tutorials and exercises assuming some Linux knowledge as well.

I'm starting from absolutely zero knowledge, so will putting Gnome/Fedora on a virtual machine be enough to play with and learn the basics or should I just set up a dual boot with that or some other distribution?

There's not all that much that a native installation can do that a VM can't. But if you want to learn the OS, you may want to consider a "total immersion" strategy where you start using Linux as your daily driver, and only switch back if you desperately need to.

Also note that most Linux distros these days go to great lengths to make things easy for you, so that you don't need to learn all the esoteric things that you'll want to be learning (i.e. command line stuff). Being able to browse the web in Iceweasel or play some music in Banshee isn't the kind of Linux knowledge they're talking about for security stuff.

fatherdog
Feb 16, 2005
I currently have 17 years of experience administering Solaris, AIX and RHEL/OEL systems, including scripting, patching, Jumpstart/Kickstart, and working with Tripwire and both Juniper and McAfee/Stonesoft firewalls. I'm not dissatisfied with my current job but we've had multiple reorgs lately and it occurred to me that having my resume polished up wouldn't be a bad idea. Aside from the actual references, are there any useful certifications that would be worthwhile for me to get if I were to shop myself around? I'm a bit out of touch with what employers are looking for these days.

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


fatherdog posted:

I currently have 17 years of experience administering Solaris, AIX and RHEL/OEL systems, including scripting, patching, Jumpstart/Kickstart, and working with Tripwire and both Juniper and McAfee/Stonesoft firewalls. I'm not dissatisfied with my current job but we've had multiple reorgs lately and it occurred to me that having my resume polished up wouldn't be a bad idea. Aside from the actual references, are there any useful certifications that would be worthwhile for me to get if I were to shop myself around? I'm a bit out of touch with what employers are looking for these days.

Have you ever got the Oracle, HP or Red Hat Certs? If anything, your experience should get you hired without a certification or even degree.

EDIT: I feel like in ever Linux Sysadmin or even "DevOps Engineer" I see KickStart/Jumpstart explicitly mentioned.

Gucci Loafers fucked around with this message at 05:14 on Jul 21, 2015

Bhodi
Dec 9, 2007

Oh, it's just a cat.
Pillbug

fatherdog posted:

I currently have 17 years of experience administering Solaris, AIX and RHEL/OEL systems, including scripting, patching, Jumpstart/Kickstart, and working with Tripwire and both Juniper and McAfee/Stonesoft firewalls. I'm not dissatisfied with my current job but we've had multiple reorgs lately and it occurred to me that having my resume polished up wouldn't be a bad idea. Aside from the actual references, are there any useful certifications that would be worthwhile for me to get if I were to shop myself around? I'm a bit out of touch with what employers are looking for these days.
I don't think cents are going to add much weight to your already strong experience. Instead, I'd dive into a book or two so you can learn and be able to talk intelligently about new trends and catch up on what you may have missed. You're going to need some virtualization.

There are still a lot of AIX / Solaris jobs out there but they're in stasis. It's the safe option; you'll slide right in because it hasn't changed in a decade. It's all "maintenance mode" of legacy software so there's no innovation happening there and the next time you hop jobs you risk being further behind the curve than you are now.

Automation is hot hot hot and DevOps is your new master. The holy grail is push-button deploy, automated test chains and agile development. To support and enable all that, there is a ton of software that wraps or replaces kickstart, so your experience is valuable. IT is moving into virtualization in one form or another (minus DBs) and so many jobs are concerned with installing and managing the host OSes and then getting them into into an available pool in a repeatable way so you can then deploy your app on top of that quickly with a minimum of fuss.

Sadly, unless you pick a favorite software there are no general certs, just books and on-the-job experience with the new hotness.

evol262
Nov 30, 2010
#!/usr/bin/perl

fatherdog posted:

I currently have 17 years of experience administering Solaris, AIX and RHEL/OEL systems, including scripting, patching, Jumpstart/Kickstart, and working with Tripwire and both Juniper and McAfee/Stonesoft firewalls. I'm not dissatisfied with my current job but we've had multiple reorgs lately and it occurred to me that having my resume polished up wouldn't be a bad idea. Aside from the actual references, are there any useful certifications that would be worthwhile for me to get if I were to shop myself around? I'm a bit out of touch with what employers are looking for these days.

Chiming in and saying the same thing as everyone else.

I got my first cert last week, and only because it was free for me to take it, a mile from my house, and I wanted to see how the RHCSA review book I'm reviewing here compared to the actual test. With 17 years of experience, nobody should give a poo poo about certs.

The last Solaris admin I know just slid into a devops Linux role. Company didn't care that he had no real Linux experience and figured he'd pick it up quickly. They were right. I'd probably avoid jobs that focus on traditional UNIX if it were me, but meh

fatherdog
Feb 16, 2005

evol262 posted:

Chiming in and saying the same thing as everyone else.

I got my first cert last week, and only because it was free for me to take it, a mile from my house, and I wanted to see how the RHCSA review book I'm reviewing here compared to the actual test. With 17 years of experience, nobody should give a poo poo about certs.

The last Solaris admin I know just slid into a devops Linux role. Company didn't care that he had no real Linux experience and figured he'd pick it up quickly. They were right. I'd probably avoid jobs that focus on traditional UNIX if it were me, but meh

I spend most of my time on the firewalls and Tripwire these days, and since Solaris means dealing with Oracle now I'd just as soon avoid it anyway.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
code:
[vagrant@vagrant ~]$ cat /etc/sysconfig/i18n 
LANG=en_US.utf8
SYSFONT="latarcyrheb-sun16"
LC_ALL=en_US.utf8
[vagrant@vagrant ~]$ echo $LANG
en_US.UTF-8
[vagrant@vagrant ~]$ echo $LC_ALL
How come LC_ALL is empty?

edit...actually, am I using the wrong value?

code:
[vagrant@vagrant ~]$ locale -a | grep en_US
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
[vagrant@vagrant ~]$ echo $LANG
en_US.UTF-8

fletcher fucked around with this message at 21:31 on Jul 21, 2015

EpicCareMadBitch
Dec 20, 2008

Powered Descent posted:

There's not all that much that a native installation can do that a VM can't. But if you want to learn the OS, you may want to consider a "total immersion" strategy where you start using Linux as your daily driver, and only switch back if you desperately need to.

Also note that most Linux distros these days go to great lengths to make things easy for you, so that you don't need to learn all the esoteric things that you'll want to be learning (i.e. command line stuff). Being able to browse the web in Iceweasel or play some music in Banshee isn't the kind of Linux knowledge they're talking about for security stuff.

So would you suggest something like Arch or Gentoo to learn the hard way?

Powered Descent
Jul 13, 2008

We haven't had that spirit here since 1969.

oaok posted:

So would you suggest something like Arch or Gentoo to learn the hard way?

Not necessarily. If you're starting from zero, like Swagger Dagger said he is, you're going to want the very basics. Off the top of my head, start with copying, renaming, finding, and editing files. Play with command pipelining -- start with piping cat into more, and from there, learn what grep and sed are for. Write a simple shell script, and learn how to do things like a "while true" loop as a one-liner. Install software, both the package manager and with ./configure; make; make install. Connect between boxes via ssh. Make a cron job. Install apache and serve up a hello world page. Start playing with netstat and iptables and whatnot.

Until you've got these basics, doing a from-scratch gentoo build won't mean much to you -- you'll really just be blindly typing the commands from a tutorial without really understanding much. Any distro will work, so you may as well use something like Ubuntu or Mint that also provides a nice usable desktop. Alternately, get a raspberry pi and learn all this stuff on your way to making it into a cool project -- a time-lapse photo machine is always a good one.

evol262
Nov 30, 2010
#!/usr/bin/perl

oaok posted:

So would you suggest something like Arch or Gentoo to learn the hard way?

I mean, we don't need to go over this again, really, but doing real stuff teaches you something. Gentoo and Arch have you blindly googling and typing things you don't understand in to shotgun debug, and even if something works, you'll have no idea why it does.

Make your system do something meaningful.

Roargasm
Oct 21, 2010

Hate to sound sleazy
But tease me
I don't want it if it's that easy
I'm wary to give advice since I'm a newbie too, but here's what helped me:

Almost everything you'll touch in Linux is a text file, so you're going to have to get good at finding them and editing them before you do anything productive. You'll also need to know file permissions. Once you're there, some good early projects are:

-Remove root login from SSH (bonus: change the default port from 22 to something above 1000)
-Install Samba file server and configure a file share from a folder in your home directory. Connect to it with Windows (samba uses SMB, a filesharing protocol supported on Windows)
-Install Apache, find the webpage that it's serving, and edit it. Connect from another device on your network
-Create a simple python script like "Hello World" and execute it
-Install a program, from your package manager, that isn't in your distribution's official software repository. Plex Media Server is a good one.

Youtube is good for all of the above. Even if you're blindly following along at first, you'll start to recognize a lot of familiar locations where things tend to be and the tools that you use to change them. In a perfect world, Linux uses a universal file hierarchy, so you always know where to look for certain programs or configuration files. Not always the case but it's usually accurate.

The key for me, which is being echoed in this thread, was to learn by doing. Think of an actual service that you want to run on your network then make it happen - there's media servers, file servers, torrent clients, network services like DNS and DHCP, etc.

Hollow Talk
Feb 2, 2014

Roargasm posted:

The key for me, which is being echoed in this thread, was to learn by doing. Think of an actual service that you want to run on your network then make it happen - there's media servers, file servers, torrent clients, network services like DNS and DHCP, etc.

This is probably the best advice. Have a project. Make up a project. Think about things that would be neat, then see if you can implement them and get them to work. One of my more recent examples is that I wanted to parse an API each day at the same time, once a day (-> cron), for which I need to download its data (-> curl), parse it (-> json, sed), sort it (-> sort, uniq) output it (-> redirection, sed), glueing it all together (-> pipes) and putting all of it in a repeatable form that works both via cron and interactively (bash). The basic project required a whole bunch of useful knowledge, and I learned something more about BASH arrays in the process. On top of that, it now even pushes the data automatically to a git repository, so there are a bit of git, a watcher programme (via inotifywait) and a systemd service file involved as well. Many of these things are probably much more useful than installing Arch and wondering why your WLAN or backlight or whatnot is not working.

nonathlon
Jul 9, 2004
And yet, somehow, now it's my fault ...
Posted something about this a few months ago, but no progress has been made so I figure it's time for some inspiration.

I'm _not_ an IT guy but a bioinformatician building / running the infrastructure for a major genomics project. So I have to be an IT guy, above and beyond my skills. (Local sysadmin resources - me.) We've based the infrastructure in AWS, which has been a big win. Deploy an app with ElasticBeanstalk and get scaling and easy config? Awesome.

However, with various different systems and web services, it would be nice to have a single identity and login system across them all. Of course, not all the software can use the same auth systems (LDAP, Shibboleth, OpenID, etc.). But the intricacies of auth systems has me running around in circles, tangling with Amazon Directory Services, getting horribly confused over LDAP. It's frankly beyond my skills, I can't get anything to just work, and I'm looking for an easy way out. Any advice? This has consumed a huge amount of my time that I frankly don't have.

JHVH-1
Jun 28, 2002

outlier posted:

Posted something about this a few months ago, but no progress has been made so I figure it's time for some inspiration.

I'm _not_ an IT guy but a bioinformatician building / running the infrastructure for a major genomics project. So I have to be an IT guy, above and beyond my skills. (Local sysadmin resources - me.) We've based the infrastructure in AWS, which has been a big win. Deploy an app with ElasticBeanstalk and get scaling and easy config? Awesome.

However, with various different systems and web services, it would be nice to have a single identity and login system across them all. Of course, not all the software can use the same auth systems (LDAP, Shibboleth, OpenID, etc.). But the intricacies of auth systems has me running around in circles, tangling with Amazon Directory Services, getting horribly confused over LDAP. It's frankly beyond my skills, I can't get anything to just work, and I'm looking for an easy way out. Any advice? This has consumed a huge amount of my time that I frankly don't have.

It might be easier to go with something like hosted AD via Azure, or something from https://www.pingidentity.com

Amazon Directory is a great idea, but I don't think its mature enough yet. I've been hoping there would be something simple for my own company because we don't have anything set up other than the ADFS server I installed for our devs to test our own app with. It wasn't that bad because amazon has a cloud formation template available that sets up the AD server for you, and then you could configure that to talk to Amazon Directory. They also have http://login.amazon.com for developers to use for an SSO system, so I am hoping they make something that is just a one click easy setup because I don't want to have to deal with it beyond adding a user every now and then.

KoRMaK
Jul 31, 2012



I have two apps that need to connect to a MySQL server via two different methods: one uses a socket and another uses tcp.

I've been using the following socat command to bring the tcp connection to a socket. It works ok, but it fires up a bajillion socat processes and I can hear my fan freaking out.

code:
socat TCP:127.0.0.1:3306,reuseaddr,fork UNIX-LISTEN:/tmp/mysql.sock
I think the issue is that I'm using fork, but if I don't use fork it only responds to one request then dies. How can I imrpove this socat command so that it stops spinning up so many other socat processes? Is there a way to keep the socat open to other connections without forking?

Marinmo
Jan 23, 2005

Prisoner #95H522 Augustus Hill
Using fedora 22, mounting NFS filesystems at boot makes it very slow (systemd-analyze blame shows Netmanager taking a good 8ish seconds). Enter autofs.

The client is 192.168.1.2, the server 192.168.1.10. Excerpt from client's fstab (actually 4 mountpoints, following the same structure with different directories on the server):

code:
192.168.1.10:/download	/server/download		nfs	defaults 0 0
This works perfectly, as expected. However, sudo showmount -e 192.168.1.10 returns:

code:
clnt_create: RPC: Port mapper failure - Authentication error
rpcbind is started on both hosts. The output from the client of nmap 192.168.1.10 is as follows:

code:
Host is up (0.00056s latency).
Not shown: 994 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
53/tcp   open  domain
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
2049/tcp open  nfs
RE: Configuring autofs:
code:
/misc	/etc/auto.misc

/net	-hosts --timeout=60
Neither of those, with the following in /etc/auto.misc:

code:
download	-rw,soft,intr		192.168.1.10:/download
Will automatically mount the export(s) on 192.168.1.10.

Anyone?

evol262
Nov 30, 2010
#!/usr/bin/perl

Marinmo posted:

Using fedora 22, mounting NFS filesystems at boot makes it very slow (systemd-analyze blame shows Netmanager taking a good 8ish seconds). Enter autofs.
Networkmanager isn't involved in NFS mounting. Are you sure this isn't a red herring?

Marinmo posted:

code:
192.168.1.10:/download	/server/download		nfs	defaults 0 0
_netdev ?

Marinmo posted:

code:
clnt_create: RPC: Port mapper failure - Authentication error
dmesg? Is this a gss failure because rpc-gssd isn't running but it's trying (and failing) krb5? Is rquotad running? Is the firewall blocking it? v3 or v4?

Marinmo posted:

RE: Configuring autofs:
code:
/misc	/etc/auto.misc

/net	-hosts --timeout=60
Neither of those, with the following in /etc/auto.misc:

code:
download	-rw,soft,intr		192.168.1.10:/download
Will automatically mount the export(s) on 192.168.1.10.
Is /misc/download created? If not, autofs may be failing to parse your entry for some reason.

RFC2324
Jun 7, 2012

http 418

If I were to set up an LDAP server for my windows boxes to auth against, how difficult is it to set up, and does windows cache these credentials the same way they do with AD logins?

Not looking for alot of detail, just figured I would ask about the challenge level and if it would really be feasible before starting to dig in(and commit my network against a server that is usually powered down)

hifi
Jul 25, 2012

From the recently released RHEL 6.7 notes, can someone explain what the following entails? It's a little hard to google and the sudo documentation doesn't really explain anything except compilation instructions.

quote:

The sudo command is now built with zlib support which enables sudo to generate and process compressed I/O logs.

Vulture Culture
Jul 14, 2003

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

hifi posted:

From the recently released RHEL 6.7 notes, can someone explain what the following entails? It's a little hard to google and the sudo documentation doesn't really explain anything except compilation instructions.
sudo has a feature that allows it to log, in addition to the commands executed through sudo, the full input and output provided to/from those commands. zlib compression does what it sounds like.

evol262
Nov 30, 2010
#!/usr/bin/perl

RFC2324 posted:

If I were to set up an LDAP server for my windows boxes to auth against, how difficult is it to set up, and does windows cache these credentials the same way they do with AD logins?

Not looking for alot of detail, just figured I would ask about the challenge level and if it would really be feasible before starting to dig in(and commit my network against a server that is usually powered down)

AD is kerberos+LDAP+DNS+ntp+dhcp. Not all components are required, but kerberos requires time sync and working DNS/rdns, so tying dhcp and DNS in is just easier.

I'd auth against LDAP+krb5, but I'd also just use IPA or another solution which handles it for you, because it's honestly a mess. Use smb4 if you insist, because Microsoft worked with them and it's a fully compliant AD controller.

Do not auth against LDAP without kerberos. LDAP for user info (homedirs, uids, etc), kerberos for auth

nonathlon
Jul 9, 2004
And yet, somehow, now it's my fault ...

JHVH-1 posted:

It might be easier to go with something like hosted AD via Azure, or something from https://www.pingidentity.com

Amazon Directory is a great idea, but I don't think its mature enough yet. I've been hoping there would be something simple for my own company because we don't have anything set up other than the ADFS server I installed for our devs to test our own app with. It wasn't that bad because amazon has a cloud formation template available that sets up the AD server for you, and then you could configure that to talk to Amazon Directory. They also have http://login.amazon.com for developers to use for an SSO system, so I am hoping they make something that is just a one click easy setup because I don't want to have to deal with it beyond adding a user every now and then.

Almost immediately after posting, I thought of that (authentication via SAAS). I reckon I could get my bosses to pay for it, if I found the right solution.

You're right that AD doesn't quite seem mature and it does seem like there is a space for a SSO service in Amazon's offerings. Hell, they've got a lot more weird and strange stuff there, why not offer a proper directory.

Anyone have suggestions about an SSO / auth SAAS?

evol262
Nov 30, 2010
#!/usr/bin/perl
Well, the big question is: which auth providers do you need? Ex: Do you need openid, or did you use it as an example? It's easier to answer with specifics

spankmeister
Jun 15, 2008






Doesn't Azure do hosted AD?

Adbot
ADBOT LOVES YOU

Gucci Loafers
May 20, 2006

Ask yourself, do you really want to talk to pair of really nice gaudy shoes?


spankmeister posted:

Doesn't Azure do hosted AD?

Azure AD is a Directory Service but doesn't necessarily do everything you'd expect a standard directory to perform - can't add devices, no GPOs, no Kerberos.

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