[CentOS] Port forward internal host not working

2020-06-28 Thread Rudi Ahlers
Hi,

I am trying to reach a Raspberry Pi on my physical LAN
(192.168.10.132), via OpenVPN, from the internet.

The Internet host is 154.77.x.x. This is also the OpenVPN router,
10.8.0.1. The Pi is on 10.8.0.203. I am trying to reach port 3000 from
the internet.

>From the CentOS 7 server, I can access the Pi over OpenVPN:

root@ns1:[~]$ telnet 10.8.0.203 3000
Trying 10.8.0.203...
Connected to 10.8.0.203.
Escape character is '^]'.

But from the host IP, I cannot get it to connect:

root@ns1:[~]$  telnet 154.77.x.x 3000
Trying 154.77.x.x ..
telnet: connect to address 154.77.x.x: Connection timed out

I have tried a few different iptables rules, but simply cannot get it working.


As example:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8081 -j DNAT --to
10.8.0.202:8081
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3000 -j DNAT --to
10.8.0.203:3000
iptables -A FORWARD -i eth0 -p tcp --dport 8081 -d 10.8.0.202 -j ACCEPT
iptables -A FORWARD -i eth0 -p tcp --dport 3000 -d 10.8.0.203 -j ACCEPT

iptables -A FORWARD -i tun+ -o eth0 -m state --state
RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun+ -m state --state
RELATED,ESTABLISHED -j ACCEPT




-- 
Kind Regards
Rudi Ahlers
Website: http://www.rudiahlers.co.za
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] RPMFusion and NVIDIA driver problem

2020-06-28 Thread Alessandro Baggi

Hi list,

I'm on C8.1 and I'm trying to install NVIDIA driver from 
rpmfusion-nonfree repository but it returns:


 package kmod-nvidia-3:440.82-2.el8.x86_64 requires 
kmod-nvidia-4.18.0-147.el8.x86_64 >= 3:440.82-2.el8, but none of the 
providers can be installed

  - conflicting requests
  - nothing provides kernel < 4.18.0-148.el8 needed by 
kmod-nvidia-4.18.0-147.el8.x86_64-3:440.82-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' 
to use not only best candidate packages)


and uname -r returns:

4.18.0-193.6.3.el8_2.x86_64

Seems that RPMFusion needs an update. Waiting for this there is a way to 
install this package without fall in problems?


Thank you in advance.

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