What's new

IP tables confusion

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Have you tried doing what I suggested?
did you mean change A to I like this? or something different?
Code:
iptables -I INPUT -p tcp -s 77.66.55.44 --dport 1234 -j ACCEPT
iptables -I INPUT -p tcp --dport 1234 -j REJECT
 
Yes, but you'll need to insert them in the correct order.
Code:
iptables -I INPUT 1 -p tcp -s 77.66.55.44 --dport 1234 -j ACCEPT
iptables -I INPUT 2 -p tcp --dport 1234 -j REJECT
 
Yes, but you'll need to insert them in the correct order.
Code:
iptables -I INPUT 1 -p tcp -s 77.66.55.44 --dport 1234 -j ACCEPT
iptables -I INPUT 2 -p tcp --dport 1234 -j REJECT
ok, i will test....so i put -INPUT 1 or without 1?

EDIT: not working this rule....i would like to post here working rule for my case....
 
Last edited:
hello, i need some help how to create iptables rule. i need like this: IP 192.168.1.20 (PC) redirect traffic to 192.168.1.1 (router) on port 4022....
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top