centos8 – Ansible error when trying to ping Windows 10 host. No winrm module

I’m using this command to ping a Windows host from my CentOS 8 Ansible server

ansible windows -m win_ping

But I get this output when executing it

windows | FAILED! => {
      “msg”: “winrm or requests is not installed: No module named winrm”
}

This is the entry for the Windows machine on my Ansible hosts file

[w10]
windows ansible_host=10.0.10.15
[w10:vars]
ansible_user=someuser
ansible_password=somepassword
ansible_connection=winrm
ansible_port=5986

Winrm is enabled on the Windows machine. I also installed the pywinrm module with the following command, but it didn’t solve my problem

pip3 install pywinrm

What am I doing wrong? Thanks in advance

docker – nginx proxy pass to the parameters defined (dynamic) host and port

On local machine, I have nginx installed, and on docker, I have dynamic ip+port vms can be created at anytime. So how to access them by specifing host and port in url parameters?

eg:

I have dynamic number of jupyter servers in docker container:

http://10.42.0.9:8888

http://10.42.0.10:8888

http://10.42.0.255:8888

What config do I need to access them like:

http://localhost/?rhost=10.42.0.9&rport=8888 -> http://10.42.0.9:8888

http://localhost/?rhost=10.42.0.10&rport=8888 -> http://10.42.0.10:8888

http://localhost/?rhost=10.42.0.255&rport=8888 -> http://10.42.0.255:8888

I have tried something like

enter image description here

But it doesn’t work like I expected.

help with choosing host

Hello, want to transfer my 10 wordpress sites form a2hosting, which is giving me very bad performances
I have narrowed dawn to fastcomet, e… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1845482&goto=newpost

Test AdSpyglass for your File/Video Host for free and get rewarded! | Proxies-free

Ad Mediation is still considered a new technology.
Some webmasters don’t believe that it actually increases income.
Others – tried mediation using the wrong configuration and without proper system optimizing and ended up feeling that it’s not working.

We’re at AdSpyglass get used to testing everything in action, and our users with more than 9’000 sites definitely know that Ad Mediation really works and significantly increases webmaster’s profit.

Are you also a “doer” and prefer to try everything in the field?
Then, we have something for you!

Test AdSpyglass for free, share your account stats in this thread and get bonuses.
How it works?

  1. Register at AdSpyglass and send us a message via the live chat saying you’re from “Proxies-free”.
  2. Get full private support from our experts to set up proper configuration and optimize the system for you site.
  3. Track your stats and your profit growth after implementing AdSpyglass and share your case in this thread.
  4. Get rewarded with bonuses for your AdSpyglass balance!

Existing users of AdSpyglass are also eligible for the offer.
Just let your expert know that you’re from WJucntion, and you’re in.

Try it out and create your own impression about Ad Mediation!

Register now

 

networking – Destination Host Unreachable when pinging but the laptop is connected to internet and its visible to the ISP modem

I have a PC and a laptop connected to the local network. Both have Ubuntu 18.04.4 Desktop, and both are visible to the modem:

enter image description here

But when I try to ping the laptop from the pc it says: Destination Host Unreachable :

(base) marco@pc:~$ sudo ping 192.168.1.9
PING 192.168.1.9 (192.168.1.9) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable

On the laptop there is no active firewall:

(base) marco@marco-U365G:~$ sudo ufw status
Status: inactive

This is /etc/netplan/01-network-manager-all.yaml of the laptop:

network
  version: 2
  renderer: NetworkManager
  # renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
      addresses: (192.168.1.9/24)
      gateway4: 192.168.1.1
      nameservers:
        addresses: (8.8.8.8,8.8.4.4)

I tried to use nmap from both pc and laptop:

(base) marco@pc:~$ sudo nmap -sn 192.168.1.0/24

Starting Nmap 7.60 ( https://nmap.org ) at 2021-05-06 18:28 CEST
Nmap scan report for www.adsl.vf (192.168.1.1)
Host is up (0.00045s latency).
MAC Address: 74:36:6D:9A:5A:63 (Unknown)
Nmap scan report for pc (192.168.1.7)
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.77 seconds

And from the laptop:

(base) marco@marco-U365G:~$ nmap -sn 192.168.1.9/24

Starting Nmap 7.60 (https://nmap.org ) at 2021-05-06 18:29 CEST
Nmap scan report for_gateway (192.168.1.1)
Host is uo (0.00075s latency)
Nmap scan report for marco-U365C (192.168.1.9)
Host is uo (0.000054s latency)
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.21 seconds

I realized that this is happening, may be, since the router change by he Internet Service Provider.

How to solve the problem?

linux – Host internal port redirection while blocking target port externally and having docker running

This might be simple but after spending ~5 hours w/ iptables and googling, I couldn’t make it work, so I thought I’ll ask here directly.

I have an ubuntu machine with Docker installed (so it manipulates iptables..)
I have a container that runs in it, and listens on port 80

On the host machine I need to both redirect incoming external traffic whose dest_port is 8080 to port 80 (I would prefer this to happen as early as possible, w/o assuming the listener is a docker container / docker-user chain at the iptables), but if that’s not possible I can compromise on assuming it’s a docker that listens on port 80.

And, to drop any traffic incoming into port 80 externally.

I’ve tried:
PREROUTING,
PREROUTING w/ setting a mark on tcp dest port 80, later dropping all marked packets at INPUT chain

the redirection works, external browsing to 8080 works.
the problem is, external access to 80 works as well.

Any ideas?

(I prefer the external filtering to be interface-specific, but that’s not a must).
(I also prefer blocking “all” incoming traffic from that specific interface, but any attempt to switch INPUT to deny/drop make the entire machine’s net non-accessible even internally)

Many thanks in advance !

[WTS] The Moth Host – cPanel | NVMe | LiteSpeed | Free SSL | Jetbackup | 30% off inside

themothhost.com/

Quote:

Coupon for 30% off on all annual hosting prices: MAYDAY2021


Valid from 1-May-21 Until 31-May-21

All Packages include

  • 30 Day Money Back Guarantee
  • 99.9% Uptime Guarantee
  • Unlimited Hosted Domains
  • Unlimited Sub Domains
  • Unlimited Parked Domains
  • Unlimited Databases
  • Unlimited E-Mail Accounts
  • Unlimited FTP Accounts
  • LiteSpeed
  • Softaculous, Web Site Builder, CloudFlare CDN, SEO Tools…
  • Select PHP Version
  • Jetbackup
  • Free SSL
  • Setup Node.js App, Phython, RubyGems…
  • CageFS Hack Protection

Tiny Moth from $0.75/Month ($0.53 with coupon)

  • 500MB NVMe SSD Storage
  • 50GB Of Monthly Traffic
  • $9.00 USD Annually | $6.30 USD with MAYDAY2021 Coupon

themothhost.com/market/cart.php?a=add&pid=1

Small Moth from $1.25/Month ($0.88 with coupon)

  • 1GB NVMe SSD Storage
  • 100GB Of Monthly Traffic
  • $8.00 USD Semi-Annually
  • $15.00 USD Annually | $10.50 USD with MAYDAY2021 Coupon

themothhost.com/market/cart.php?a=add&pid=2

Medium Moth from $1.59/Month ($1.11 with coupon)

  • 2GB NVMe SSD Storage
  • 200GB Of Monthly Traffic
  • $11.00 USD Semi-Annually
  • $19.00 USD Annually | $13.30 USD with MAYDAY2021 Coupon

themothhost.com/market/cart.php?a=add&pid=3

Big Moth from $1.92/Month ($1.34 with coupon)

  • 5GB NVMe SSD Storage
  • 500GB Of Monthly Traffic
  • $14.00 USD Semi-Annually
  • $23.00 USD Annually | $16.10 USD with MAYDAY2021 Coupon

themothhost.com/market/cart.php?a=add&pid=4

Huge Moth from $2.50/Month ($1.75 with coupon)

  • 10GB NVMe SSD Storage
  • 1TB Of Monthly Traffic
  • $17.00 USD Semi-Annually
  • $30.00 USD Annually | $21 USD with MAYDAY2021 Coupon

themothhost.com/market/cart.php?a=add&pid=5

Contact:
presales(AT)themothhost.com
themothhost.com

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

magento2 – Suddenly stop working elastic search, Error message : Couldn’t connect to host, Elasticsearch down?

I am stuck on this issue my code suddenly stops working not able to find the root cause of any idea regarding this. Earlier it was working fine. Kindly help. I have checked the all configuration are correct.

Fatal error:  Uncaught ElasticaExceptionConnectionHttpException: Couldn't connect to host, Elasticsearch down? in /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:186
Stack trace:
#0 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Request.php(171): ElasticaTransportHttp->exec(Object(ElasticaRequest), Array)
#1 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Client.php(662): ElasticaRequest->send()
#2 /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Search.php(461): ElasticaClient->request('elasticdata/...', 'GET', Array, Array)
#3 /data/docroot/magento/fetch_all_data.php(142): ElasticaSearch->search(Object(ElasticaQuery))
#4 {main}
  thrown in /data/docroot/magento/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php on line 186