Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
add script to iptables
View previous topic :: View next topic  
Author Message
FGHC
Junior Member


Joined: 06 May 2008
Posts: 8
Location: Portugal

PostPosted: Tue May 06, 2008 8:11 pm    Post subject: add script to iptables Reply with quote

Hi,
Im using SMS for a few days, and today i want to create a Call of Duty 2 dedicated server. For that i need to add a script to my iptables and i dont know hot to do it. Can someone help me.

I need to add the following script to my iptables:

Code:
#! /bin/bash
$MyIP = “192.168.2.100”
/sbin/iptables -A INPUT -p udp -d $MyIP --dport 28960 -m state --state NEW -j
ACCEPT


Cheers
Back to top
View user's profile Send private message Visit poster's website
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Tue May 06, 2008 9:18 pm    Post subject: Reply with quote

hello.
You can use Easy Firewall Generator for IPTables (EFG) for having a complete iptables rc.firewall script and add your command to it, save it as rc.firewall and place it at /etc/rc.d/ and make it executable with 'chmod +x /etc/rc.d/rc.firewall'
Every time the system boots rc.firewall will executed.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional