Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri May 31, 2013 7:39 am 
Offline
Newbie

Joined: Fri May 31, 2013 6:28 am
Posts: 3
hello i was setting up a Ubuntu 13.04 steam server for TF2 and few more games and i was needing some help on the iptables the ones i have dont work and so i want out on the internet looking around for tables and i found a pastebin a http://pastebin.com/7Btmyz2h it has a lot of random ways i also found some nice ways to stop DDOS attack in the pastebin atm i want to run the Linode as a game server only i appreciate your help and thank you


Last edited by LinuxGamer on Sun Jun 02, 2013 2:00 pm, edited 1 time in total.

Top
   
PostPosted: Fri May 31, 2013 1:32 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Please read this. Really hard to read like this.

What's your goal for the firewall? What isn't working? Which errors are you getting? Did you try something simpler first, e.g. Just DROPing the ports you don't need and open the ports required for you to SSH/connect to TF2?


Top
   
PostPosted: Sun Jun 02, 2013 2:52 pm 
Offline
Newbie

Joined: Fri May 31, 2013 6:28 am
Posts: 3
Nuvini wrote:
Please read this. Really hard to read like this.

What's your goal for the firewall? What isn't working? Which errors are you getting? Did you try something simpler first, e.g. Just DROPing the ports you don't need and open the ports required for you to SSH/connect to TF2?



Code:
#!/bin/bash



echo "Configuring IPTables SteamCMD"
#Reset to defaults
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT


#Allow SSH
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT


#Required ports for HLDS and SRCDS Servers
iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT


#Other CS Forwards
iptables -A INPUT -p tcp --dport 1200 -j ACCEPT
iptables -A INPUT -p udp --dport 1200 -j ACCEPT
iptables -A INPUT -p tcp --dport 3478:4380 -j ACCEPT
iptables -A INPUT -p udp --dport 3478:4380 -j ACCEPT


#Reject all other traffic
iptables -A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
echo "IPTables configured sucessfully."


Top
   
PostPosted: Sun Jun 02, 2013 2:58 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Please answer my other questions.


Top
   
PostPosted: Sun Jun 02, 2013 3:41 pm 
Offline
Newbie

Joined: Fri May 31, 2013 6:28 am
Posts: 3
Nuvini wrote:
Please answer my other questions.

i got lazy and installed arno-iptables-firewall works fine now


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group