#11  
Old 28th April 2006, 13:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by donanak
Falko as you can see, I dropped you and email but you asked if i could put it up here. I don't know which forum is the best to post my stuff. Can you help?
What kind of help do you need?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 28th April 2006, 14:49
donanak donanak is offline
Junior Member
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default network setup

I have an IPCOP box working fine. On the orange I've connected a box which will be my server. I installed Fedora Core 5 and assigned ipaddress 192.168.1.1 and on the Orange interface on the IPCOP the ip is 192.168.1.0 all with subnetmask of 255.255.255.0.

My question: when I try to connect to the internet it report an error : page cannot be found.

I put my IPCOP ip as the gateway to see if that will solve the problem but to my dismay, it's still the same error. I do not know if I have to do something somethere to fix this error.

If i get help with this I can go on to install my server this weekend. Can I also use you howto guide for fedora core 5 x86_64 for just a x86 install as you mentioned that you'll need a tweak.

Thanks
Reply With Quote
  #13  
Old 29th April 2006, 14:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by donanak
I have an IPCOP box working fine. On the orange I've connected a box which will be my server. I installed Fedora Core 5 and assigned ipaddress 192.168.1.1 and on the Orange interface on the IPCOP the ip is 192.168.1.0 all with subnetmask of 255.255.255.0.
You cannot use 192.168.1.0 as IP address, it's reserved (network address), the same goes for 192.168.1.255 (broadcast address). Use another one.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 7th March 2008, 01:40
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

I like IP-Cop to.I used it quite some time ago and it works great on a very old computer (~300MHz/~196MB RAM/~100 computers).The only thing I'd need is an interface for setting/changing Ip Tables firewall rules.
Does anyone know of an extension for IP-Cop (or some other way),which makes it possible?
Reply With Quote
  #15  
Old 10th March 2008, 04:35
Elixa Elixa is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Leszek - The only thing I'd need is an interface for setting/changing Ip Tables firewall rules. Does anyone know of an extension for IP-Cop (or some other way),which makes it possible?

--------------------------------------------------

Answer ... you need these two addons for your IPCOP

1. BlockOutTraffic-3.0.0-GUI-b2

This addon is complicated & confusing in its rule writing ... but unlike its title suggests ... it is not just for blocking Out-Bound-Traffic. This addon has no major bugs installs perfectly on most versions of IPCOP and is a complete by-directional rule writer. As an extra BONUS (one of the few that can) this addon handles every kind of IP format range. You can be very specific with your rules. Many have asked similar questions about how to block certain IP-ranges within their intranets. With this addon you can rule in or out almost anything.

Note. For those taking this addon to the extreme IP-Tables may only handle about 2500 rules before the rules go crazy found this out personally using BlockOutTraffic-3.0.0-GUI-b2 and Iptablesgui-ipcop-0.1.0.

2. Iptablesgui-ipcop-0.1.0

With this addon you can see in near real-time (as fast as you can click it) exactly how your rules appear in IP-Tables. Modify the rules in BlockOutTraffic and then view this addon to see how they look. This is a very handy addon, overall less any outside connections attempts (see below).

--------------------------------------------------

Iptablesgui --- For the more serious IPCOP users References to an update within the cgi page that doesnt exist from the parent company could be removed. Removing the update reference calls from the page increases the refresh speed of the page a little and perhaps improves security of your IPCOP as well.

After you have successfully installed Iptablesgui-ipcop-0.1.0

If you leave your iptablesgui.cgi default, the way it is when you refresh the Iptablesgui page

your IPCOP will try to make a connection to 87.169.30.220 "p57A91EDC.dip0.t-ipconnect.de"

If you modify iptablesgui.cgi IPCOP will not make any UN-necessary outside connections when refreshing the Iptablesgui page!!! Below is a copy of iptablesgui.cgi with REM Statements # inserted before the update checks.

cd /home/httpd/cgi-bin
edit iptablesgui.cgi

Start modification Replace the entire contents with
--------------------------------------------------





#!/usr/bin/perl
#
################################################## ##############################
#
# IPCop iptables Web-Iface
#
# Copyright (C) 2007 Olaf (weizen_42) Westrik
#
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
#
#
# Dieses Programm ist freie Software. Sie knnen es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation verffentlicht, weitergeben und/oder modifizieren, entweder gem Version 2 der Lizenz oder (nach Ihrer Option) jeder spteren Version.
#
# Die Verffentlichung dieses Programms erfolgt in der Hoffnung, da es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FR EINEN BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.
#
# Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
#
################################################## ##############################
#
# For support post / read in http://www.ipcop-forum.de
#
# $Id: iptablesgui.cgi 161 2007-05-18 14:07:45Z weizen_42 $
#
# 2007-03 created by weizen_42
#

use strict;

# enable only the following on debugging purpose
use warnings;
use CGI::Carp 'fatalsToBrowser';

use LWP::UserAgent;

require '/var/ipcop/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";

my $version = 'v0.1.0';
my $debug = 0;

##########
##################################################
## checking for new version
##my $addonname = 'iptablesgui';
##my $onlineversion = '';
##my $onlinelink = '';
##my $timestamplastcheck = '/var/ipcop/iptablesgui/lastcheck';
##my $flagdonotcheck = '/var/ipcop/iptablesgui/noversioncheck';
##################################################
##########

my $option_table = '';

my %cgiparams=();
$cgiparams{'ACTION'} = ''; # refresh
$cgiparams{'TABLE'} = 'filter'; # filter / mangle / nat / raw
$cgiparams{'CHAIN'} = '';
&Header::getcgihash(\%cgiparams);


if ( $cgiparams{'ACTION'} eq $Lang::tr{'refresh'} )
{
}
$cgiparams{'CHAIN'} = '' if ( $cgiparams{'TABLE'} eq 'BOT_FAQ_#11' );


&Header::showhttpheaders();
&Header::openpage($Lang::tr{'iptablesgui title'}, 1, '');
&Header::openbigbox('100%', 'left');

# Found this usefull piece of code in BlockOutTraffic AddOn 8-)
# fwrules.cgi
###############
# DEBUG DEBUG
if ( $debug )
{
&Header::openbox('100%', 'left', 'DEBUG');
my $debugCount = 0;
foreach my $line (sort keys %cgiparams) {
print "$line = $cgiparams{$line}<br />\n";
$debugCount++;
}
print "&nbsp;Count: $debugCount\n";
&Header::closebox();
}
# DEBUG DEBUG
###############

##########
##################################################
##
## Check for new version
##
##&checkfornewversion($addonname, $version);
##if ( $onlineversion ne '' )
##{
## &Header::openbox('100%', 'left', $Lang::tr{'info'});
## print <<END
##<table width="100%"><tr>
##<td>$Lang::tr{'iptablesgui newversion'} <a href="$onlinelink" target="_blank"><b>$onlineversion</b></a></td>
##</tr></table>
##END
##;
## &Header::closebox();
##}
##################################################
##########


foreach my $table ( ("filter", "mangle", "nat", "raw", "BOT_FAQ_#11") )
{
if ( $cgiparams{'TABLE'} eq $table )
{
$option_table = $option_table ."<option value='$table' selected='selected'>$table</option>";
}
else
{
$option_table = $option_table ."<option value='$table'>$table</option>";
}
}

&Header::openbox('100%', 'left', $Lang::tr{'iptablesgui title'});

print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'><table width='100%'>
<tr><td width='20%' class='base'>Table:</td><td colspan='3'><select name='TABLE'>$option_table</select></td></tr>
<tr><td width='20%' class='base'>Chain:&nbsp;<img src='/blob.gif' alt='*' /></td><td colspan='3'><input type='text' name='CHAIN' value='$cgiparams{'CHAIN'}' size='20' /></td></tr>
</table>
<hr />
<table width='100%'>
<tr>
<td width='70%' class='base' valign='top'><img src='/blob.gif' alt='*' />&nbsp;$Lang::tr{'this field may be blank'}</td>
<td width='30%'><input type='submit' name='ACTION' value='$Lang::tr{'refresh'}' /></td>
</tr>
</table>
<hr />
END
;

my $output = '';
if ( ($cgiparams{'TABLE'} eq 'BOT_FAQ_#11') || ($cgiparams{'CHAIN'} eq '') )
{
$output = `/usr/local/bin/iptableswrapper $cgiparams{'TABLE'} 2>&1`;
}
else
{
$output = `/usr/local/bin/iptableswrapper chain $cgiparams{'TABLE'} $cgiparams{'CHAIN'} 2>&1`;
}
$output = &Header::cleanhtml($output);

(my @lines) = split(/\n/, $output);

print "<pre>";
foreach my $line ( @lines )
{
$line = substr($line, 0, rindex($line, ' ', 120)) . "\n" . substr($line, rindex($line, ' ', 120)) if ( length($line) > 120 );
print $line ."\n";
}
print "</pre>";

print <<END
<hr />
<table width='100%'>
<tr>
<td>&nbsp;</td>
<td align='right'>
<b><small><a href="http://www.ban-solms.de/t/IPCop.html" target="_blank">iptablesgui $version</a></small></b>
</td>
</tr>
</table>
</form>
END
;
&Header::closebox();

&Header::closebigbox();
&Header::closepage();

##########
##################################################
##sub checkfornewversion
##{
## my $addon = shift;
## my $version = shift;
## $onlineversion = '';
##
## if ( -e $flagdonotcheck )
## {
## return;
## }
##
## # only check if we are online and last check was some time ago
## if ( (! -e '/var/ipcop/red/active') || (-e $timestamplastcheck) && (int(-M $timestamplastcheck) < 5) )
## {
## return;
## }
##

###workaround to suppress a warning when a variable is used only once
## my @dummy = ( $General::version );
## undef (@dummy);
##
## my $ua = LWP::UserAgent->new;
## $ua->timeout(120);
## $ua->agent("Mozilla/4.0 (compatible; IPCop $General::version; $version)");
## my $content = $ua->get("http://ipcop-addons.ath.cx/version/$addon");
##
## if ( $content->is_success )
## {
## # compare the versions, format is v1.2.3
## $content->content =~ /v(\d+).(\d+).(\d+)/;
## my $ver1 = $1;
## my $ver2 = $2;
## my $ver3 = $3;
##
## $version =~ /v(\d+).(\d+).(\d+)/;
##
## if ( ($ver1 > $1) || (($ver1 == $1) && ($ver2 > $2)) || (($ver1 == $1) && ($ver2 == $2) && ($ver3 > $3)) )
## {
## $onlineversion = "v$ver1.$ver2.$ver3";
##
## $content->content =~ /http(.*)/;
## $onlinelink = "http$1";
## }
## else
## {
## # no news, recheck in a couple of days
## system("touch $timestamplastcheck");
## }
## }
##}
##################################################
##########




--------------------------------------------------
End modification Replace the entire contents with
Reply With Quote
The Following User Says Thank You to Elixa For This Useful Post:
Leszek (11th March 2008)
  #16  
Old 1st September 2008, 20:45
Elixa Elixa is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default guiports-1.6.2.tar.gz for IPCOP v1.4.21

guiports-1.6.2.tar.gz

From www.h-loit.de (www 'dot' h-loit 'dot' de) *(German only)

Reposted here for those who cannot download from original source and

Included modification info below that is necessary for installation
into IPCOP v1.4.20 ... updated to IPCOP v1.4.21

This addon is a prerequisite to samba-0.2.1.tar.gz

To use samba-0.2.1.tar.gz the default IPCOP access port must be changed from
port 445 to something else easily accomplished by using guiports-1.6.2.tar.gz

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Copy guiports-1.6.2.tar.gz


to /tmp/bot1/ (example)

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Enter terminal command:


tar -zxvf guiports-1.6.2.tar.gz

(before next step ... see modification below)


./install -i

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

For ... IPCOP v1.4.20 ... updated to IPCOP v1.4.21


edit 'install' ... line 245

change '1.4.18' to '1.4.21'

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

To view and use the addon go to IPCop/System/Gui Settings/




Enjoy ;-)
Attached Images
 
Attached Files
File Type: gz guiports-1.6.2.tar.gz (17.3 KB, 510 views)
Reply With Quote
  #17  
Old 1st September 2008, 20:58
Elixa Elixa is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 3 Times in 3 Posts
Default samba-0.2.1.tar.gz for IPCOP v1.4.21

samba-0.2.1.tar.gz


From www.h-loit.de (www 'dot' h-loit 'dot' de) *(German only)

For those who cannot download from original source good luck ... as 18 mb was too large to upload here.

Included modification info below that is necessary for installation into IPCOP v1.4.20 ... updated to IPCOP v1.4.21

To use samba-0.2.1.tar.gz the default IPCOP access port must be changed from port 445 to something else easily accomplished by using guiports-1.6.2.tar.gz

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Copy samba-0.2.1.tar.gz


to /tmp/bot1/ (example)

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Enter terminal command:


tar -zxvf samba-0.2.1.tar.gz

(before next step ... see modification below)


Command had to be executed from the console. (local machine)


./install -i

during install enter ... for example * (your personal network range) ... 192.168.0.0/16

later ... in the gui (global settings, advanced view) ...

... allow ... 192.168.0.0/16 *(your personal network range ... could be different)
... deny ... 0.0.0.0/0 *(these settings keep access limited to your personal network)

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

For ... IPCOP v1.4.20 ... updated to (IPCOP v1.4.21)


edit install ... line 705

change '2.4.34' to '2.4.36'

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

To view and use the addon go to IPCop/Services/Samba Server/


Check 'enable Samba Server ?' ...
... click 'save' ... then click 'start'.

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

To login into the SWAT settings use the username and password for root user of IPCOP.

If using BlockOutTraffic 3.0.0 - Build 3 ...
Port 901 had to be opened ... 'IPCop access'

Default shared folder 'files'

Default username and password for shared folder 'samba:samba'




Enjoy ;-)
Attached Images
 
Reply With Quote
The Following User Says Thank You to Elixa For This Useful Post:
dxighithall (11th April 2010)
  #18  
Old 29th October 2008, 10:19
ernstavbro ernstavbro is offline
Junior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

this may sound stupid, but I cannot seem to find the link to download the ISO for IPCop!! When I go to ipcop.org, and click the download tab, i see the tgz files... ipcop-1.4.21-update.i386.tgz.gz and ipcop-1.4.21-sources.tgz...

could somebody point me to the right direction?
my apologies...
Reply With Quote
  #19  
Old 29th October 2008, 12:31
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

Here You go: http://heanet.dl.sourceforge.net/sou...ll-cd.i386.iso
Reply With Quote
  #20  
Old 24th February 2009, 18:41
rodar rodar is offline
Junior Member
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

this thread has helped me a lot. thx to all.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 +2. The time now is 14:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.