Contact SalesSitemapCustomer Login

Warning: mysql_connect() [/function.mysql-connect]: Can't connect to MySQL server on 'coredb-01.spry.com' (13) in [path]/vpslink_template_files/contextual_ads.inc.php on line 56

Go Back   VPSlink Forums > Operating Systems > Ubuntu

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-22-2008, 07:24 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default

Quote:
Originally Posted by vpslinkdotcom View Post
There should be no issue for OpenVZ. Also we have now updated our XEN provisioning system to include the new modules on any re-install/new install. (Issue is fixed for everyone going forward)
jon@barkingseed:~$ sudo shorewall safe-start
[sudo] password for jon:
Compiling...
Initializing...
Determining Zones...
IPv4 Zones: net
Firewall Zone: fw
Validating interfaces file...
Validating hosts file...
Pre-processing Actions...
Pre-processing /usr/share/shorewall/action.Drop...
Pre-processing /usr/share/shorewall/action.Reject...
Validating Policy file...
Determining Hosts in Zones...
net Zone: venet0:0.0.0.0/0
Deleting user chains...
Compiling /etc/shorewall/routestopped ...
Creating Interface Chains...
Compiling Common Rules
Adding Anti-smurf Rules
Adding rules for DHCP
Compiling TCP Flags checking...
Compiling Martian Logging...
Compiling IP Forwarding...
Compiling /etc/shorewall/rules...
Compiling Actions...
Compiling /usr/share/shorewall/action.Drop for Chain Drop...
Compiling /usr/share/shorewall/action.Reject for Chain Reject...
Compiling /etc/shorewall/policy...
Compiling Traffic Control Rules...
Compiling Rule Activation...
Shorewall configuration compiled to /var/lib/shorewall/.start
Starting...
Starting Shorewall....
Initializing...
Clearing Traffic Control/QOS
Deleting user chains...
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
Enabling Loopback and DNS Lookups
Creating Interface Chains...
Setting up SMURF control...
Setting up Black List...
Adding Anti-smurf Jumps...
Setting up rules for DHCP...
Setting up TCP Flags checking...
Setting up ARP filtering...
Setting up Martian Logging...
Setting up Accept Source Routing...
IP Forwarding Enabled
Setting up SYN Flood Protection...
Setting up Rules...
Setting up Actions...
Creating action chain Drop
Creating action chain Reject
Creating action chain dropBcast
Creating action chain dropInvalid
Creating action chain dropNotSyn
Applying Policies...
Activating Rules...
touch: cannot touch `/var/lock/subsys/shorewall': No such file or directory
done.
Reply With Quote
  #12 (permalink)  
Old 02-22-2008, 05:01 PM
Administrator
 
Join Date: Dec 2007
Posts: 1,141
Default

Quote:
Originally Posted by jon@breakdesign.com View Post
FATAL: Could not load /lib/modules/2.6.18-ovz028stab039.1-smp/modules.dep: No such file or directory
ip6tables v1.3.6: can't initialize ip6tables table `filter': iptables who? (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
The OpenVZ platform does not support the loading of kernel modules within a virtual environment - all kernel modules available to your VPS are loaded at the hardware node level. You will need to configure Shorewall for "monolithic" kernel operation to bypass its default kernel module-loading behavior. We have most commonly requested kernel modules already loaded.

You will also want to disable ipv6 support in Shorewall - ip6tables is not loaded because it's useless without an ipv6 network provider.
Reply With Quote
  #13 (permalink)  
Old 02-23-2008, 08:17 PM
Administrator
 
Join Date: Feb 2006
Posts: 773
Default

Jon,

It appears you're trying to load ipv6 firewall modules (ip6ables). Those are not loaded or supported on our system.
Reply With Quote
  #14 (permalink)  
Old 02-25-2008, 12:33 AM
Junior Member
 
Join Date: Feb 2008
Posts: 4
Default

Quote:
Originally Posted by DanL@VPSLink View Post
The OpenVZ platform does not support the loading of kernel modules within a virtual environment - all kernel modules available to your VPS are loaded at the hardware node level. You will need to configure Shorewall for "monolithic" kernel operation to bypass its default kernel module-loading behavior. We have most commonly requested kernel modules already loaded.

You will also want to disable ipv6 support in Shorewall - ip6tables is not loaded because it's useless without an ipv6 network provider.
funnily enough.....the only thing that needed doing was

setting :

DISABLE_IPV6=No

in /etc/shorewall/shorewall.conf

this is because in a perversely twisted form of logic the configuration file requires you to have IPV6 support to be able
to disable it. If you don't have it then it will error as it will
try to disable using ip6tables which we don't have the module for
...so setting it to no fixes any errors
Reply With Quote
  #15 (permalink)  
Old 04-24-2009, 02:59 PM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

Quote:
You will need to configure Shorewall for "monolithic" kernel operation to bypass its default kernel module-loading behavior
How can I do this ?
Reply With Quote
  #16 (permalink)  
Old 04-24-2009, 05:46 PM
Administrator
 
Join Date: Dec 2007
Posts: 1,141
Default

Quote:
If you build monolithic kernels and have not installed module-init-tools, then create an empty /etc/shorewall/modules file; that will prevent Shorewall from trying to load modules at all.
- Shorewall man pages
Reply With Quote
  #17 (permalink)  
Old 04-25-2009, 02:51 PM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

Big thanx for Your replay! But even when I disable module loading I can't force shorewall to work - when I start firewall I can't ping for example to google, and when I wish to login into ssh, connecting is significant longer. Is there somebody on this forum, that successful install shorewall on OpenVZ platform? Or I have to chose Xen or write iptables ruble by hand? Thanx in advance for help.
Reply With Quote
  #18 (permalink)  
Old 04-25-2009, 06:26 PM
Senior Member
 
Join Date: Jul 2007
Location: 127.0.0.1
Posts: 389
Exclamation

Quote:
Originally Posted by mateusz.kaczmarek@gmail.c View Post
Big thanx for Your replay! But even when I disable module loading I can't force shorewall to work - when I start firewall I can't ping for example to google, and when I wish to login into ssh, connecting is significant longer. Is there somebody on this forum, that successful install shorewall on OpenVZ platform? Or I have to chose Xen or write iptables ruble by hand? Thanx in advance for help.
Ok, look dood, stop with the bullsht. Your VPS has limited resources, so for us, LESS IS MORE, keep that in mind as every kilobyte of ram is precious. In other words, stop with the shorewall talk...

Use this instead - it's a damn text file you can edit in just about any text editor. No "application" to install or configure, just a single text file.. LESS BLOAT h0h0h0

Code:
[vps6 ~]:# cat ~/fw/mainfw
*mangle
:PREROUTING ACCEPT [15121:16435254]
:INPUT ACCEPT [15121:16435254]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [14609:11600858]
:POSTROUTING ACCEPT [14599:11600258]
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,PSH,URG -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,PSH,URG -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,PSH,URG -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG FIN,PSH,URG -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP 
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP 
COMMIT
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
:LOG_DROP - [0:0]
:icmp_packets - [0:0]
-A INPUT -s MY.PERSONAL/HOME.WAN.IP.WAS.HERE -j ACCEPT
#### Cyveillance Office ####
-A INPUT -s 63.148.99.0/24 -j DROP
-A INPUT -s 65.118.41.0/24 -j DROP
-A INPUT -s 38.99.0.0/16 -j DROP
-A INPUT -s 38.100.0.0/16 -j DROP
-A INPUT -s 38.105.244.0/24 -j DROP
-A INPUT -s 38.118.25.0/24 -j DROP
-A INPUT -s 38.118.42.0/24 -j DROP
-A INPUT -s 216.32.64.0/24 -j DROP
-A INPUT -s 38.112.21.0/24 -j DROP
-A INPUT -s 207.87.178.0/24 -j DROP
-A INPUT -s 65.222.185.0/24 -j DROP
-A INPUT -s 65.222.176.0/24 -j DROP
-A INPUT -s 63.100.163.0/24 -j DROP
-A INPUT -s 151.173.221.0/24 -j DROP
-A INPUT -s 68.48.24.0/24 -j DROP
-A INPUT -s 4.35.201.0/24 -j DROP
#### END Cyveillance    ####
-A INPUT -s 10.0.0.0/8 -j DROP
-A INPUT -s 24.39.1.242 -j DROP
-A INPUT -s 38.103.63.0/24 -j DROP
-A INPUT -s 60.166.0.0/15 -j DROP
-A INPUT -s 60.168.0.0/13 -j DROP
-A INPUT -s 60.190.240.64/27 -j DROP
-A INPUT -s 61.135.0.0/16 -j DROP
-A INPUT -s 61.139.0.0/16 -j DROP
-A INPUT -s 62.75.240.0/22 -j DROP
-A INPUT -s 62.75.244.0/23 -j DROP
-A INPUT -s 64.17.0.0/20 -j DROP
-A INPUT -s 64.56.65.0/24 -j DROP
-A INPUT -s 64.62.142.0/24 -j DROP
-A INPUT -s 64.94.45.0/24 -j DROP
-A INPUT -s 66.249.70.0/24 -j DROP
-A INPUT -s 66.67.224.0/20 -j DROP
-A INPUT -s 66.112.55.168/29 -j DROP
-A INPUT -s 66.151.226.0/24 -j DROP
-A INPUT -s 70.53.146.0/24 -j DROP
-A INPUT -s 72.14.164.0/24 -j DROP
-A INPUT -s 72.55.128.0/18 -j DROP
-A INPUT -s 74.12.218.0/24 -j DROP
-A INPUT -s 74.86.0.0/16 -j DROP
-A INPUT -s 74.222.0.0/19 -j DROP
-A INPUT -s 76.69.95.0/24 -j DROP
-A INPUT -s 76.73.4.0/24 -j DROP
-A INPUT -s 77.37.205.0/24 -j DROP
-A INPUT -s 77.73.8.64/26 -j DROP
-A INPUT -s 77.221.131.0/24 -j DROP
-A INPUT -s 82.99.30.0/24 -j DROP
-A INPUT -s 83.233.30.0/24 -j DROP
-A INPUT -s 89.143.13.0/24 -j DROP
-A INPUT -s 91.121.96.0/24 -j DROP
-A INPUT -s 91.121.139.0/24 -j DROP
-A INPUT -s 91.209.70.0/24 -j DROP
-A INPUT -s 94.75.192.0/24 -j DROP
-A INPUT -s 94.142.128.0/24 -j DROP
-A INPUT -s 94.222.0.0/16 -j DROP
-A INPUT -s 94.223.0.0/16 -j DROP
-A INPUT -s 118.160.0.0/13 -j DROP
-A INPUT -s 118.168.0.0/14 -j DROP
-A INPUT -s 119.0.0.0/8 -j DROP
-A INPUT -s 120.29.209.0/24 -j DROP
-A INPUT -s 121.8.0.0/13 -j DROP
-A INPUT -s 121.32.0.0/14 -j DROP
-A INPUT -s 123.128.0.0/13 -j DROP
-A INPUT -s 149.32.192.0/24 -j DROP
-A INPUT -s 167.1.146.0/24 -j DROP
-A INPUT -s 169.254.0.0/16 -j DROP
-A INPUT -s 172.16.0.0/12 -j DROP
-A INPUT -s 193.226.83.0/24 -j DROP
-A INPUT -s 194.8.74.0/23 -j DROP
-A INPUT -s 200.63.40.0/22 -j DROP
-A INPUT -s 202.108.0.0/16 -j DROP
-A INPUT -s 202.126.96.0/20 -j DROP
-A INPUT -s 202.59.164.0/24 -j DROP
-A INPUT -s 202.67.220.0/24 -j DROP
-A INPUT -s 202.114.0.0/19 -j DROP
-A INPUT -s 207.36.117.0/24 -j DROP
-A INPUT -s 208.96.54.0/24 -j DROP
-A INPUT -s 211.143.48.0/20 -j DROP
-A INPUT -s 211.143.64.0/18 -j DROP
-A INPUT -s 211.143.128.0/20 -j DROP
-A INPUT -s 212.100.250.0/24 -j DROP
-A INPUT -s 213.186.59.0/24 -j DROP
-A INPUT -s 213.248.158.0/24 -j DROP
-A INPUT -s 213.253.92.0/24 -j DROP
-A INPUT -s 216.147.0.0/17 -j DROP
-A INPUT -s 216.183.93.160/27 -j DROP
-A INPUT -s 219.232.240.0/24 -j DROP
-A INPUT -s 220.181.0.0/16 -j DROP
-A INPUT -s 222.32.0.0/11 -j DROP
-A INPUT -s 222.208.0.0/13 -j DROP
-A INPUT -s 224.0.0.0/4 -j DROP
-A INPUT -d 224.0.0.0/4 -j DROP
-A INPUT -d 239.255.255.0/24 -j DROP
-A INPUT -s 240.0.0.0/5 -j DROP
-A INPUT -d 240.0.0.0/5 -j DROP
-A INPUT -d 255.255.255.255  -j DROP
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
# comcrap addr
-A INPUT -s MY.PERSONAL/HOME.WAN.IP.WAS.HERE -p icmp -m icmp -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT 
-A INPUT -s 127.0.0.1/32 -j ACCEPT 
-A INPUT -p icmp -j icmp_packets 
-A INPUT -j LOG_DROP 
-A OUTPUT -d MY.PERSONAL/HOME.WAN.IP.WAS.HERE -j ACCEPT
# comcrap addr 
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
# comcrap addr
-A OUTPUT -d MY.PERSONAL/HOME.WAN.IP.WAS.HERE -p icmp -m icmp -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 22 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 25 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 43 -j ACCEPT 
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 53 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 443 -j ACCEPT 
-A OUTPUT -p tcp -m tcp --dport 465 -j ACCEPT 
-A OUTPUT -d 127.0.0.1/32 -j ACCEPT 
-A OUTPUT -p icmp -j icmp_packets 
-A OUTPUT -j LOG_DROP 
-A LOG_DROP -j LOG --log-prefix "[IPTABLES DROP] : " 
# --log-tcp-options --log-ip-options 
-A LOG_DROP -j DROP 
-A icmp_packets -p icmp -m icmp --icmp-type 0 -j ACCEPT 
-A icmp_packets -s 40.xxx.xxx.xxx/32 -p icmp -m icmp --icmp-type 8 -j ACCEPT 
# PUT YER VPS IP IN THE LINE ABOVE THIS LINE.
-A icmp_packets -p icmp -m icmp --icmp-type 8 -j DROP 
-A icmp_packets -p icmp -m icmp --icmp-type 3 -j ACCEPT 
-A icmp_packets -p icmp -m icmp --icmp-type 11 -j ACCEPT 
COMMIT
*nat
:PREROUTING ACCEPT [9849:572796]
:POSTROUTING ACCEPT [27110:1646113]
:OUTPUT ACCEPT [27120:1646713]
COMMIT
[vps6 ~]:#
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 11:28 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0