| Linode Forum https://forum.linode.com/ |
|
| IPtables is blocking my https-alt port and the sieve one. https://forum.linode.com/viewtopic.php?f=19&t=10484 |
Page 1 of 1 |
| Author: | sblantipodi [ Sat Oct 05, 2013 12:47 pm ] |
| Post subject: | IPtables is blocking my https-alt port and the sieve one. |
Hi, I restricting iptables rules a little. This is the rules I'm putting inside iptables. Code: #!/bin/sh as you can see there is rules to accept connections on port 8443 (it is my https alternative port) and there is a rule to accept connection on 4190 where my sieve is. With this rules I cannot access neither sieve neither https-alt. Why? Thanks!!! |
|
| Author: | db3l [ Sat Oct 05, 2013 4:37 pm ] |
| Post subject: | Re: IPtables is blocking my https-alt port and the sieve one |
sblantipodi wrote: With this rules I cannot access neither sieve neither https-alt. Try temporarily disabling your output rules (empty the chain and set the policy to accept) and see if it works. From a quick glance it looks like you've got your output rules filtering on destination port where they should be using source port (e.g., on output the traffic is coming from the well known server port, not to it). So the traffic is probably reaching the daemons, but the return traffic can't leave. Personally I tend to leave the output chain pretty simple, generally trusting that once a process is operating locally, it ought to be able to generate outbound traffic. There's nothing wrong with a more locked down output chain, which I'm sure others prefer, you just have to be sure you account for the proper traffic patterns. Although, to cover your regular services you might be able to just use a single "established" rule, since I'd think for any inbound traffic to become established it would have had to make it through your input chain and reach a daemon. Then you just need individual output chain rules for whatever locally originated outbound connections you wish to support (such as, for example, outbound mail delivery). -- David |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|