Quite easy to do stuff on Specific IP.

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Quite easy to do stuff on Specific IP.

Postby thecooldude » Wed Feb 14, 2007 4:44 am

iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.
thecooldude
Lance Naik
 
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Website: http://www.xsroot.com
WLM: cancerian_pisces@hotmail.com
Location: Dubai, UAE.

Re: Quite easy to do stuff on Specific IP.

Postby nomankhn » Wed Feb 14, 2007 11:19 am

thecooldude wrote:iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.


Dear

check this command

#iptables -m mac -h ( if this command will show u the mac option then use that command)

Regards
Noman Liaquat Khanzada Rajput
Linux means productivity and fun.
We all love Linux, but it's also a fact that some people might not be able to migrate.
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: Quite easy to do stuff on Specific IP.

Postby kbukhari » Wed Feb 14, 2007 12:46 pm

thecooldude wrote:iptables -A INPUT -p tcp -s 192.168.2.3 -j REJECT --reject-with tcp-reset

But! user can ofcourse change the ip as well. Even I remember you/we're talking about MAC o.O

Thanks
..

Regards,
Khurram Nawaz.
0300-4141791.


if you think your users can change thier mac address then in that case user authentication is the Good choice
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

Re:

Postby LinuxFreaK » Wed Feb 14, 2007 1:12 pm

Dear thecooldude,
Salam,

FYI, http://www.linuxpakistan.net/forum2x/vi ... php?t=2182

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Thanks, but I already knew!

Postby thecooldude » Thu Feb 15, 2007 9:01 pm

Thanks guys!

But I already knew, I just posted replies on user's Questions and that's all :)

Ah! Farukh nice script bud! but a drawback. Put a NAT box, and use as much as PC's you want :)

Thanks

..

Regards,

Khurram Nawaz.
+92-300-4141791
+92-42-5432259
thecooldude
Lance Naik
 
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Website: http://www.xsroot.com
WLM: cancerian_pisces@hotmail.com
Location: Dubai, UAE.

Re:

Postby LinuxFreaK » Sat Feb 17, 2007 10:12 am

Dear thecooldude,
Salam,

thecooldude wrote:Ah! Farukh nice script bud! but a drawback. Put a NAT box, and use as much as PC's you want :)


This is possible even if you are using firewall. If you want to limit then limit maximum connections from per IP Address.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Dear Farukh.

Postby thecooldude » Mon Feb 19, 2007 1:46 am

This is possible even if you are using firewall. If you want to limit then limit maximum connections from per IP Address.

Hello,

Dude nice scripts by you no doubt!

But try AstroFlowGuard ;)

Would be helpful..

Thanks

..

Regards,

Khurram Nawaz.
+92-300-4141791
+92-42-5432259
thecooldude
Lance Naik
 
Posts: 43
Joined: Sun Nov 26, 2006 6:04 pm
Website: http://www.xsroot.com
WLM: cancerian_pisces@hotmail.com
Location: Dubai, UAE.


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron