Raised This Month: $51 Target: $400
 12% 

Iptables For New Admins


Post New Thread Reply   
 
Thread Tools Display Modes
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-26-2011 , 16:47   Re: Iptables For New Admins
Reply With Quote #21

Ya it is, i have used port knocking set up's before but in the end for my game servers i found it to be 2 much. I like to be able to ssh from my droid or any where i can grab a shell I just have a Iron Key USB drive with my pub key on it.
__________________
Mavrick4283 is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-27-2011 , 11:07   Re: Iptables For New Admins
Reply With Quote #22

Yeah. We will see, what I do in the future .
__________________
sake is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-30-2011 , 02:36   Re: Iptables For New Admins
Reply With Quote #23

https://forums.alliedmods.net/showthread.php?t=166037

Told you i do another tut for non iptable stuff
__________________
Mavrick4283 is offline
sake
Senior Member
Join Date: Jul 2011
Old 08-30-2011 , 03:57   Re: Iptables For New Admins
Reply With Quote #24

Hmm Thanks for that. Looks like I have some work to do (Especially the jails).
__________________
sake is offline
mehmetali
Senior Member
Join Date: Jan 2010
Location: Turkey
Old 08-31-2011 , 04:16   Re: Iptables For New Admins
Reply With Quote #25

Hey, good tutorial

I block tcp 27015 port, but gameme stats is broken. rank top10 commands unavailable

How to allow some IP addresses can only to 27015 tcp port, gameme whether to allow the ip address, I will provide the statistics to work

Thanks
mehmetali is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-31-2011 , 04:25   Re: Iptables For New Admins
Reply With Quote #26

Quote:
Originally Posted by mehmetali View Post
Hey, good tutorial

I block tcp 27015 port, but gameme stats is broken. rank top10 commands unavailable

How to allow some IP addresses can only to 27015 tcp port, gameme whether to allow the ip address, I will provide the statistics to work

Thanks
This tut was meant for new admin to get a start on there firewalls i put up all the docs that you need. But scene gameme is used by ALOT of people.


iptables -A INPUT -s <Gameme ipaddresses> --jump ACCEPT


Edit: the info for Game ME firewall rules can be found here. http://www.gameme.com/docs/setup/firewall
__________________

Last edited by Mavrick4283; 08-31-2011 at 04:28. Reason: Put Game ME wiki link
Mavrick4283 is offline
mehmetali
Senior Member
Join Date: Jan 2010
Location: Turkey
Old 08-31-2011 , 07:13   Re: Iptables For New Admins
Reply With Quote #27

Thanks so much

Last edited by mehmetali; 08-31-2011 at 08:56.
mehmetali is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-22-2011 , 11:05   Re: Iptables For New Admins
Reply With Quote #28

About the Portknocking stuff:

I want to protect RCON via Portknocking. But the thing is that I don't know which of the ports has to do with it. I've tried 27015/tcp but didn't work.

knockd.conf:

PHP Code:
  1 [options]
  
2     logfile = /var/log/knockd.log
  3
  4 
[openSSH]
  
5     sequence    xxxxxxxxxxx,xxxxxxxxxx,xxxxxxxx
  6     seq_timeout 
5
  7     start_command     
= /sbin/iptables -I INPUT 1 -%IP% -p tcp --dport xxxxxxxx -j ACCEPT
  8     tcpflags    
syn
  9     cmd_timeout 
60
 10     stop_command     
= /sbin/iptables -D INPUT -%IP% -p tcp --dport xxxxxxxxx -    j ACCEPT 
What i did to this is that i copied the whole openSSH stuff and renamed it to RCON, changed the ports and adjusted the port in the start and stopcommand to 27015. But it didn't work out, because even after deleting 27015 out of the iptables/ufw-firewall I could connect via HLSW without even knocking the tiniest bit .
__________________
sake is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 09-22-2011 , 12:25   Re: Iptables For New Admins
Reply With Quote #29

Try this

Code:
[options]
    logfile = /var/log/knockd.log
[RCON 27015]
    sequence      = 1:udp,2:tcp,3:udp
    seq_timeout   = 15
    tcpflags      = syn,ack
   start_command      = /usr/sbin/iptables -A INPUT -s %IP% -p tcp --dport 27015 -j ACCEPT
    cmd_timeout        = 5
    stop_command       = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --dport 27015 -j ACCEPT
You also have to make sure that you are not allowing traffic in your firewall to start with or this has no effect.

Type
Code:
iptables -L
And see if you are allowing TCP traffic to your game server ( AKA Rcon traffic)

If you are still having problems please post or PM your entire firewall CFG
__________________
Mavrick4283 is offline
sake
Senior Member
Join Date: Jul 2011
Old 09-22-2011 , 14:30   Re: Iptables For New Admins
Reply With Quote #30

Okay. will try this. Thanks .
__________________
sake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode