home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 137,583 of 138,051   
   marrgol to Mohan   
   Re: How to configure Iptables in OpenSus   
   01 Sep 22 22:37:55   
   
   From: marrgol@address.invalid   
      
   On 01/09/2022 at 16.22, Mohan wrote:   
   > I am using "openSUSE 12.3" and "iptables version : v1.4.16.3"   
   >   
   > I am trying to enable the iptables rules to allow `22` port for all IPs and   
   `80` & `443` for specific IP addresses with the below commands.   
   >   
   > 1)  iptables -A INPUT -p tcp -s 0/0 --dport 22 -j ACCEPT   
   > 2) iptables -A INPUT -p tcp -s 10.11.12.50 --dport 80 -j ACCEPT   
   > 3) iptables -A INPUT -p tcp -s 10.11.12.50 --dport 443 -j ACCEPT   
   >   
   > Then i have restarted the iptables service with below command,   
   >   
   > service SuSEfirewall2 restart   
      
   SuSEfirewall2 keeps its own iptables configuration, so that restart   
   removed the rules you'd entered manually with iptables command.   
   Use yast to enter your custom rules into the SuSEfirewall2's   
   configuration permanently.  Or edit /etc/sysconfig/SuSEfirewall2   
   file directly.   
      
      
   --   
   mrg   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca