Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] How to convert these iptables rules to SuSEfirewall2?

I packaged ocserv in network:vpn and I wanted to submit it to Factory.

Dominique suggests me to raise this topic.

I wrote the instruction in README.SUSE before:

#### Shutdown SUSEFirewall2 through YaST

Because I don't know how to convert iptables rules to SUSEFirewall2 ones.
If you can help me, please fork this package and submit back.

#### Set iptables rules

sudo /sbin/iptables -A INPUT -p tcp --dport 9000 -j ACCEPT
sudo /sbin/iptables -A INPUT -p udp --dport 9001 -j ACCEPT
sudo /sbin/iptables -t nat -A POSTROUTING -s -o eth0 -j
sudo /sbin/iptables -A FORWARD -s -j ACCEPT

The 9000/9001 ports, IP range are default ones,
you can change them in /etc/ocserv/ocserv.conf

Warning: Your eth0 may not exist, you can ifconfig -a to find yours.

#### Enable IP forward

sudo echo 1 > /proc/sys/net/ipv4/ip_forward

It doesn't live after reboot.


How can I achieve the same result without shutting SuSEFirewall2 down?

Any documentation I can learn from?

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >