Krissteel

IPTABLES FORWARD

1 post in this topic

Hi,

I have problem with solus default configuration in iptables is:

SOLUSVM_TRAFFIC_IN  all --  0.0.0.0/0            0.0.0.0/0           
SOLUSVM_TRAFFIC_IN  all --  0.0.0.0/0            0.0.0.0/0

so I want to change this to allow only ssh to be forwarded

          
SOLUSVM_TRAFFIC_IN  tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22
SOLUSVM_TRAFFIC_OUT  tcp  --  0.0.0.0/0            0.0.0.0/0           tcp spt:22

REJECT -- all  0.0.0.0/0            0.0.0.0/0

And this is not working connection to ssh is blocked.

Where is mistake, how it should be done properly.

 

 

Edited by Krissteel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now