Ask Your Question

javierwilson's profile - activity

2017-04-29 23:10:26 -0500 received badge  Popular Question (source)
2017-04-29 23:10:26 -0500 received badge  Famous Question (source)
2017-04-29 23:10:26 -0500 received badge  Notable Question (source)
2016-08-26 16:19:14 -0500 received badge  Nice Answer (source)
2015-08-06 21:35:13 -0500 commented answer firewalld as a firewall / router

not loving the answer but it does seem the only way to get this done using firewalld.

2015-08-06 21:34:37 -0500 commented answer firewalld as a firewall / router

that's why i said " the FORWARD table" because that's the name iptables uses for this table. and I also added: not the "forward-ports" option. pleeeease....

2015-07-29 13:49:31 -0500 commented question How to make cron send emails?

If journalctl -u crond shows no clues, I would say, test /home/wolfv/backup_script /home/wolfv /home/wolfv/backup_local because maybe it's not producing any output. Also check CRONDARGS in /etc/sysconfig/crond is not stopping cronie from sending mails.

2015-07-29 06:52:44 -0500 commented question How to make cron send emails?

Does journalctl -u crond throw any light on this?

2015-07-29 06:45:14 -0500 commented answer firewalld as a firewall / router

masquerade works great that's not the problem. and --add-forward-port solves another issue, your example shows how to redirect an incoming connection (on external) from port 2222 to port 22 address 102.168.1.17. That's more like pre-routing REDIRECT than FORWARD. I explained in my question this is not what I need.

2015-07-29 06:32:23 -0500 received badge  Commentator
2015-07-29 06:32:23 -0500 commented answer firewalld as a firewall / router

That's definitely one way to do it... However I end up with so many direct rules that I have a feeling I might as well switch back to iptables.

2015-07-28 19:53:18 -0500 commented question lost my windows 7 after installing fedora 20

It's right there, you can see all the NTFS partitions. Right? It might even show up in the grub menu, have a good look.

2015-07-28 15:41:14 -0500 answered a question lspci eth0

Your netwrok interface info is there, "eth0" and "wlan0":

07:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10) 
08:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
2015-07-28 11:10:21 -0500 answered a question Moving postgresql 9.4 data directory in fedora 22

-D works with pg_ctl too, however, if you're using systemd, have a look at /usr/lib/systemd/system/postgresql.service there you have:

# Location of database directory
Environment=PGDATA=/var/lib/pgsql/data

Just remember, SELINUX may complain if you change PGDATA.

If you do not want to touch systemd files, see the section "FILE LOCATIONS" in postgresql.conf. This would allow you to have the config files where -D or PGDATA say they should be but have the data somewhere else, because data_directory overrides -D and PGDATA for the location of the data directory

#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------

# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.

#data_directory = 'ConfigDir'           # use data in another directory
                                        # (change requires restart)
#hba_file = 'ConfigDir/pg_hba.conf'     # host-based authentication file
                                        # (change requires restart)
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
                                        # (change requires restart)
2015-07-28 10:12:22 -0500 asked a question firewalld as a firewall / router

I'm a fan of firewalld (using it on f22), very intuitive, very easy to start using it as a router, you have two interfaces on your computer-router, one of them "internal", the other one "external" you enable net.ipv4.ip_forward, and masquerade is already enabled on the external zone, so... that's it.

But then, I want to control which ports I allow forwarding, and I mean the FORWARD table not the "forward-ports" option. Basically I want to control what users behind my router can do, I want to allow them to browse the internet, and check their email: forward ports dns, http, https, pop, pops, imap, imaps from interface/zone internal to interface/zone external.

Using iptables this required two things (eno2 is my internal interface): 1) allow FORWARD por such tcp ports

-A FORWARD -i eno2 -m conntrack --ctstate NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A FORWARD -i eno2 -m conntrack --ctstate NEW -m tcp -p tcp --dport 443 -j ACCEPT

2) REJECT all other FORWARD requests

-A FORWARD -j REJECT --reject-with icmp-host-prohibited

Any idea, how to accomplish this using firewalld?

2014-05-13 10:07:36 -0500 answered a question How to use macvtap with virt-install

This was not supported before Fedora 20, now it is. See https://bugzilla.redhat.com/show_bug.cgi?id=855740

Basically you use something like:

--network type=direct,source=eth0,model=virtio

If you are using fedora >=20, have a look at "man virt-install"

2014-04-20 13:19:42 -0500 commented question Why is the web traffic doesn't go through my VPN connection?

I think you have (misunderstood), I mean, of course you could do that. But you can do many other things with a VPN, I use it to connect to my office LAN, so I surfe the web using my ISP but I use my office LAN resources through the VPN, this is quite common. But of course you can do what you say too. I think you should open another question: How to redirect all traffic through a VPN? The answer will probabably be: https://openvpn.net/index.php/open-source/documentation/howto.html#redirect

2014-04-20 08:01:03 -0500 commented question Why is the web traffic doesn't go through my VPN connection?

I have used openvpn before with no problem. Your IP is not suppose to change, you have an extra network interface and you connect to your VPN peer using that interface, I imagine all 10.0.0.0/24 traffic will be routed through your VPN (including http traffic). But I am not sure that's the answer you are looking for. I did not fully understand your question.

2014-04-10 06:50:55 -0500 received badge  Self-Learner (source)
2014-04-08 12:01:16 -0500 commented answer file copy application takes a long time to exit after finishing copy operation in Fedora 20?

I understand it is expected behaviour, and it sounds clever. However, it is very... non-intuitive.

2014-04-08 11:10:40 -0500 received badge  Scholar (source)
2014-04-08 00:04:59 -0500 received badge  Famous Question (source)
2014-04-07 21:19:51 -0500 received badge  Notable Question (source)
2014-04-07 20:25:05 -0500 answered a question Does Heartbleed Bug of OpenSSL affect Fedora 19 or 20?

It does: https://bugzilla.redhat.com/show_bug.cgi?id=1085065 Bug 1085065 - CVE-2014-0160 openssl: information disclosure in handling of TLS heartbeat extension packets [fedora-all] and updates have been submitted alredy (for f19 and f20)

2014-04-07 20:23:12 -0500 received badge  Popular Question (source)
2014-04-07 17:34:37 -0500 asked a question Does Heartbleed Bug of OpenSSL affect Fedora 19 or 20?

Reading about this bug today it seems to affect openssl 1.0.1 <= f, Fedora 19 and 20 currently use 1.0.1e. I can see Fedora 18 listed as "shipped with potentially vulnerable" (see http://heartbleed.com/ ) but not Fedora 19 nor 20. Can you please confirm?

2014-02-11 20:32:54 -0500 received badge  Self-Learner (source)
2014-02-11 20:32:54 -0500 received badge  Necromancer (source)
2014-02-11 20:32:29 -0500 received badge  Teacher (source)
2014-01-18 11:51:34 -0500 received badge  Famous Question (source)
2013-11-18 15:41:44 -0500 answered a question Determining server's purpose

First I would test the usual suspects, see if is a web/app server, mail server or file server. From the command line, you can use:

 netstat -nltp

To see what TCP ports are open ans listening... this will give you and idea of what the server is being used for, you will see a list of ports and processes, for example :::80 ... xxx/httpd or :::3306 ... xxx/mysqld.

You can also use:

 ps aux

To see the list of running processes, this will give you more clues. Or you could list all services with the service manager:

 systemctl

Good luck!

2013-11-18 15:35:40 -0500 received badge  Editor (source)
2013-11-17 23:01:12 -0500 answered a question Regarding Skype

You can either use a different user to launch it from the command line using that user. Or you can use the command line (terminal) with the --dbpath parameter, like:

skype --dbpath ~/skype
2013-11-16 16:40:53 -0500 answered a question Default user and password in cloud images?

The default username is "fedora", no default password but you can set it using the cloud-init service which, as you mention, starts at boot time in your cloud VM.

I use the "No cloud" datasource because I'm not using OpenStack or any other cloud provisioning software.

You can set your password, ip interfaces and other things. See the documentation here: http://cloudinit.readthedocs.org/en/latest/topics/datasources.html#no-cloud

2013-11-14 17:14:06 -0500 commented question How should I configure VMs so that they will shutdown?

You mean you can't shut them down using the virt-manager "Shutdown" button? Or you just can't shut them down at all?

2013-11-14 16:51:45 -0500 commented question fedora 18 updates won't boot

any error message? problems loading initram or kernel?

2013-11-14 15:33:45 -0500 received badge  Supporter (source)
2013-11-14 15:32:03 -0500 answered a question Fedora 19 Cloud Images with virt-manager

As @marcindulak said, http://www.technovelty.org/linux/running-cloud-images-locally.html explains it very well. You can set the password for 'fedora', you can set the ip config for each interface, but "ssh_keys" seems to have no effect. Also "package_upgrade: true" is not working.

I recommend to have a look at http://cloudinit.readthedocs.org/en/latest/topics/examples.html

2013-11-11 03:22:38 -0500 received badge  Notable Question (source)
2013-10-23 04:51:21 -0500 received badge  Popular Question (source)
2013-10-11 18:29:28 -0500 asked a question Fedora 19 Cloud Images with virt-manager

I downloaded the "64-bit 129MB Raw image" from http://fedoraproject.org/get-fedora-options#clouds

I used virt-install to import it, it runs fine but I cannot login. I know root login is disabled and that I should use the username "fedora" but no password is provided. I am not using openstack (I do not want to use it just now).

Any idea if this is even possible?

2013-02-27 11:39:43 -0500 commented answer Fedora 18 Checksum

but it would be nice to update https://fedoraproject.org/en/verify right now it only has fedora 17 checksums

2012-04-30 15:42:57 -0500 received badge  Famous Question (source)