V
V
vadimeasy2021-11-17 09:05:45
PowerShell
vadimeasy, 2021-11-17 09:05:45

How to make limited permissions for SSH operations using iptables?

I am developing software for creating connections in iptables, I will write the interface and functionality in python.
I would like to learn more about access rights. For the user, I need to give the right exclusively to create a rule and nothing else. So that no one can carry out any operations on the server, except for this creation of a rule. Please tell me where you can read about this and explain if this is possible at all and how the transfer of information via ssh works, did someone have a similar project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2021-11-17
@pfg21

How ssh works is a tunnel.
ssh-client from stdin takes the data and redirects to the server.
on the ssh server, the received data is fed to the connected program on stdin, and the output from stdout is taken and sent to the client.
The ssh client passes the characters received over the tunnel to stdout.
ssh can run any program, if not present, it launches a shell.
ssh until the purple light indicates what data is being sent. if you want to filter data then do it separately from ssh.
for example, write your api that will only accept the correct commands

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question