ipTables

jeff-405

Junior Member
Mar 1, 2013
1
0
0
how to resolve my ssh connection on port 22 and additional port 80 needed.

Hi folks am running into a major problem with a new pbx system im trying to get working.
I have been pulling my hair out for 3 weeks trying to configure the sip trunks but get
stopped by my linux firewall after entering the access key.
need to resolve my ssh connection on port 22 and additional port 80 needed.
in addition not being able to get my phones up and running, i have noticed a similar unavailability of
the server when i try to connect to 10.0.x.x:10000 from a wireless connection outside of the server
local network.


any help appreciated,
I am very new to linux and it lookes like overkill on iptable accept rules i have added
i have ran a port check and port 21 is the only success the rest fail
Code:
Rules file /etc/sysconfig/iptables     

PACKET FILTERING (FILTER)
    
Incoming packets (INPUT) - Only applies to packets addressed to this host
Select all. | Invert selection.
        Action        Condition          
    Accept     If protocol is TCP and destination port is 5060:5070         
    Accept     If protocol is TCP and destination port is 443:453         
    Accept     If protocol is TCP and destination port is 21:31         
    Accept     If protocol is TCP and destination port is 22:32         
    Accept     If protocol is TCP and destination port is 80:90         
    Accept     If protocol is TCP and destination port is 80 and state of connection is NEW         
    Accept     If state of connection is RELATED,ESTABLISHED         
    Accept     If protocol is TCP and destination port is 440:5061 and source port is 440:5061         
    Accept     If protocol is UDP and destination port is 440:5061 and source port is 440:5061 and state of connection is NEW         
    Accept     If protocol is TCP and destination port is 21:81 and source port is 21:81         
    Accept     If protocol is UDP and destination port is 21:81 and source port is 21:81         
Select all. | Invert selection.
        
Forwarded packets (FORWARD) - Only applies to packets passed through this host
Select all. | Invert selection.
        Action        Condition         
    Accept     If protocol is TCP and destination port is 21:81 and source port is 21:81         
    Accept     If protocol is UDP and destination port is 21:81 and source port is 21:81         
Select all. | Invert selection.
        
Outgoing packets (OUTPUT) - Only applies to packets originated by this host
Select all. | Invert selection.
        Action        Condition           
    Accept     If protocol is TCP and destination port is 21:81 and source port is 21:81         
    Accept     If protocol is UDP and destination port is 21:81 and source port is 21:81         
Select all. | Invert selection.
        
Chain freePBX
Select all. | Invert selection.  
    Accept     Always         
    Accept     If protocol is TCP         
    Accept     If protocol is UDP

PACKET ALTERATION (MANGLE)

Packets before routing (PREROUTING)
Select all. | Invert selection.
        Action        Condition        
    Accept     If protocol is TCP         
    Accept     If protocol is UDP         
Select all. | Invert selection.
        
Incoming packets (INPUT) - Only applies to packets addressed to this host
Select all. | Invert selection.
        Action        Condition           
    Accept     If protocol is TCP         
    Accept     If protocol is UDP         
Select all. | Invert selection.
        
Forwarded packets (FORWARD) - Only applies to packets passed through this host
Select all. | Invert selection.
        Action        Condition          
    Accept     If protocol is TCP         
    Accept     If protocol is UDP         
Select all. | Invert selection.
        
Outgoing packets (OUTPUT) - Only applies to packets originated by this host
Select all. | Invert selection.
        Action        Condition          
    Accept     If protocol is TCP         
    Accept     If protocol is UDP         
Select all. | Invert selection.
        
Packets after routing (POSTROUTING)
Select all. | Invert selection.
        Action        Condition    
    Accept     If protocol is TCP         
    Accept     If protocol is UDP

NETWORK ADDRESS TRANSLATION (NAT)

Packets before routing (PREROUTING)
Select all. | Invert selection.
        Action        Condition         
    Accept     If protocol is UDP and destination port is 440:5061         
    Accept     If protocol is TCP and destination port is 440:5061         
    Accept     If protocol is TCP and destination port is 21:81         
    Accept     If protocol is UDP and destination port is 21:81         
Select all. | Invert selection.
        
Outgoing packets (OUTPUT) - Only applies to packets originated by this host
Select all. | Invert selection.
        Action        Condition         
    Accept     If protocol is TCP and destination port is 20:81 and source port is 20:81         
    Accept     If protocol is UDP and destination port is 20:81 and source port is 20:81         
Select all. | Invert selection.
        
Packets after routing (POSTROUTING)
Select all. | Invert selection.
        Action        Condition        
    Accept     Always         
    Accept     If protocol is UDP         
    Accept     If protocol is TCP