How do I get firewalld to restrict access to all except specified IP addresses?
338
one option is to remove the service: https from the zone
firewall-cmd --zone=public --remove-service=https
and then use what is known as rich rules to specify what sources [IP addresses] may access what service [such as http and https] like so:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="x.x.x.0/24" service name="https" log prefix="https" level="info" accept'
might need to reload though
Related videos on Youtube
Author by
kiddbenji
Updated on September 18, 2022Comments
-
kiddbenji almost 2 years
I dont have the rights to create a table from the view but I can read this view. Database has no Table juste one view.
-
Michael Hampton about 9 yearsThat looks right. Have you got other zones?
-
zaadman over 7 yearsSee this post for more options: serverfault.com/questions/680780/…
-
inspectorG4dget almost 3 years
df = pd.DataFrame(sql='select * from my_view')
-
kiddbenji almost 3 yearsThere is no keyword argument sql
-
Henry Ecker almost 3 yearsI think that's supposed to be
df = pd.read_sql('select * from my_view', conn)
-
Larnu almost 3 yearsIf the database had no tables, where is the data in the view coming from? A view is a pseudo table defined by a
SELECT
. The data can't exist in the view. -
kiddbenji almost 3 yearsFrom another database but we dont have acces. We got one view and I have to deal with it. This is a large view and it take too much time to display it or transform it into a DataFrame
-
kiddbenji almost 3 yearsdf = pd.read_sql('select * from my_view', conn) = too much time
-
Larnu almost 3 yearsThen improve the performance of the
VIEW
, that seems like the problem here. -
kiddbenji almost 3 yearsI Only can read the VIEW
-
SMor almost 3 yearsAsk the people that manage your server instance / databases. There is little you can do in the query to "speed things up" without more intimate knowledge of the view, the query that defines it, the tables it uses, etc.
-
Larnu almost 3 yearsClearly the problem here is the
VIEW
and or tables and they (lack of) indexing; that is what you, or someone else, needs to fix. You can't make aSELECT *
from aVIEW
faster without altering the view or tables it references.
-