How can i just poke a hole for a port, so it can use any traffic.
For instance I want to do this:
iptables -I INPUT --sport 123 -j ACCEPT
yeah why won't that work, i want all traffic to come and go on port 123
![]()
How can i just poke a hole for a port, so it can use any traffic.
For instance I want to do this:
iptables -I INPUT --sport 123 -j ACCEPT
yeah why won't that work, i want all traffic to come and go on port 123
![]()
So if you find someone
Someone to have, someone to hold
Don't trade it for silver
Don't trade it for gold
I should think you'll want to use --dport (--destination-port) for that rule (since it's input... incoming destination). You also may need to have a rule for the OUTPUT chain, using --sport
iptables -I INPUT --destination-port 123 -j ACCEPT
iptables -I OUTPUT --source-port 123 -j ACCEPT
I haven't a clue about your firewall though and how the rulechains are set up but if those commands are issued after all the others, they should override for that port.
ah, i have to spell it out, i get yeah. I have my firewall blocking everything from coming in, so i'm not too worried about things getting out.
Bookmarks