[SOLVED] iptables: bad argument "In_RULE_0"
I'm creating my firewall rules on FirewallBuilder and I noticed it has an "anti spoofing rule" it creates as RULE_0. I'm copying the compiled rules and trying to create a rules file but that rule_0 is not being accepted.
iptables -A INPUT -i enp0s7 -s $i_enp0s7 -j In_RULE_0
iptables -A In_RULE_0 -j LOG --log-level info --log-prefix "RULE 0 -- DENY "
iptables -A In_RULE_0 -j DROP
The output is
Bad argument `In_RULE_0'
Try `iptables -h' or 'iptables --help' for more information.
The compiled version with all other commands:
# ================ Table 'filter', rule set Policy
# Rule 0 (enp0s7)
echo "Rule 0 (enp0s7)"
# anti spoofing rule
$IPTABLES -N In_RULE_0
for i_enp0s7 in $i_enp0s7_list
do
test -n "$i_enp0s7" && $IPTABLES -A INPUT -i enp0s7 -s $i_enp0s7 -j In_RULE_0
done
for i_enp0s7 in $i_enp0s7_list
do
test -n "$i_enp0s7" && $IPTABLES -A FORWARD -i enp0s7 -s $i_enp0s7 -j In_RULE_0
done
$IPTABLES -A In_RULE_0 -j LOG --log-level info --log-prefix "RULE 0 -- DENY "
$IPTABLES -A In_RULE_0 -j DROP
Some have suggested I put my IP address in there, but that would required extra work considering my IP changes many times a day.
Last edited by Amarildo (2014-10-12 04:00:50)
Solved. Instead of using
-s $i_enp0s7
use
-s my-hostname
so
iptables -A INPUT -i enp0s7 -s junior -j In_RULE_0
Last edited by Amarildo (2014-10-12 04:00:30)
Similar Messages
-
I'm working through Structure and Interpretation of Computer Programs, and I've run into some behaviour I don't understand.
The code:
(define (average x y)
(/ (+ x y) 2))
(define (refine r g)
(print "["r"]["g"]")
(average (/ r g) g))
(define (sqrt-guess rad guess)
(define oldguess guess)
(define guess (refine rad guess)) # problem line
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
It seems that when refine is called in the problem line the second argument is not being 'received' as I would expect.
#;1> (sqrt-guess 9 1)
[9][#<unspecified>]
Error: (/) bad argument type: #<unspecified>
Call history:
<syntax> (sqrt-guess 9 1)
<eval> (sqrt-guess 9 1)
<eval> [sqrt-guess] (refine r g)
<eval> [refine] (print "[" r "][" g "]")
<eval> [refine] (average (/ r g) g)
<eval> [refine] (/ r g) <--
I tried (define guess (refine rad oldguess)), same outcome. At this point, I figure it's some consequence of applicative-order processing that I don't understand. But things got more interesting when I added a standalone call to refine:
(define (sqrt-guess rad guess)
(define oldguess guess)
(refine rad oldguess) # new line
(define guess (refine rad oldguess)) # (define guess (refine rad guess)) also works
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
Now the code runs as expected and returns an answer. However, if I change "oldguess" to "guess" in the first refine line:
(define (sqrt-guess rad guess)
(define oldguess guess)
(refine rad guess)
(define guess (refine rad oldguess)) # (define guess (refine rad guess)) also fails
(if (= oldguess guess)
guess
(sqrt-guess rad guess)))
the original error re-occurrs. In every case the 'standalone' call to refine gets both arguments as expected; it's the one in "define guess" that has issues.
I'm not looking for help fixing the code, but for an explanation/breakdown of what's going on. Thanks.
Last edited by alphaniner (2013-06-20 13:20:34)I believe that redefining 'guess' is confusing the compiler.
You're right. That was my first thought too, but I swear I tried something like (define foo (refine rad guess)) which didn't work either. I just tried it again and it works just fine.
I haven't been introduced to let yet, and the way it's parenthesized I don't really understand how it works. I think of let in bash terms (ie. let x++) so maybe that's my problem. Anyway, I'll wait 'till I come across it in the text.
Using your suggestions I got it to work using only stuff I know:
(define (sqrt-guess rad guess)
(define newguess (refine rad guess))
(if (= newguess guess)
guess
(sqrt-guess rad newguess)))
Definitely cleaner. Thanks! -
ORA-29261: bad argument using UTL_HTTP.REQUEST_PIECES
I am running Oracle 10gR2.
I keep getting ORA-29261: bad argument when setting the proxy either by the UTL_HTTP.SET_PROXY or UTL_HTTP.REQUEST_PIECES code. I have searched this forum and found no resolutions. I have set this proxy in the browser and it works fine. The following are excerpts of my code:
Begin
utl_http.set_proxy('http://myproxy/theProxyFile');
End;The error is:
ORA-29261: bad argument
ORA-06512: at "SYS.UTL_HTTP", line 22
ORA-06512: at "SYS.UTL_HTTP", line 888
ORA-06512: at line 2
I get the same error when trying to set the proxy via UTL_HTTP.REQUEST_PIECES.
Thanks in advance,
Becky
Edited by: Becky Eisen on Aug 8, 2011 10:15 AM
Edited by: Becky Eisen on Aug 8, 2011 10:21 AMAfter submitting this, I realized that I needed to look in the Proxy file for the actual proxy! Duh.
-
Bridge CS4 Bad argument {LiveObject("Thumbnail").property(0)}
Can anyone assist with resolving this error message? Bad argument {LiveObject("Thumbnail").property(0)}
It happens after saving a Gallery.
Using Windows 7 + Dreamweaver CS4
Thank youHi
Can you provide more details to reproduce such error?
e.g.
1. launch bridge
2. choose some files, in output mode, choose a template..
3..etc
thanks. -
Error when running script to reset size - bad argument gettokenmanager
Hello,
I use RoboHelp HTML 8 (currently on 8.0.2.208) and have a project with a number of user interface images that are going to be translated. The translated images will likely be of different size, so I need to have a fast way of reseting all the image sizes in my project.
I discovered Chasnikov's script "reset all images" on the thread:
http://forums.adobe.com/message/2128583#2128583
which seems just perfect for my situation.
Not wanting to test this on my real project, I made a copy in a different location and tested out the script. The script ran for a while, but then abruptly ended with the following message:
Bad argument getTokenManager
In looking at the output window it seemed like it stopped in the middle of a topic after going through a number of topics. For my test situation, I only replaced a few graphics in a few topics and when I checked this limited sample, they all seemed to be correctly resized.
However, my concern is that if I use this script in my real project, it won't actually resize all of the images.
Any ideas why the script is terminating abruptly?
By the way, I did find a similar question about this error message in the thread http://forums.adobe.com/message/2551147
however, the solution to add the line msg(filepath); to the script resulted in another error -- RH did not recognize 'msg' as a valid command.
Thanks, RoseThanks Willam for the advice. In the meantime I realized that there was something wrong with my project--because the word count script also gave me the same error message -- so I ran it on another version of the project and it was just fine.
There are two questions that your response brings to mind:
1. How are you able to see the line numbers in the script? When I edit the script, it opens in Notepad and I can't turn on line numbers. I have discovered, that if I have word wrap off, I can use Goto and specifiy a line number to go to. Are you using a different text editor?
2. The reset size script doesn't announce that it is finished. It just seems to stop displaying things in the output window, but it doesn't give me a message to say it has finished. Can you recommend some code I could add to the reset size script to output that it has finished processing sucessfully?
Thanks in advance.
Rose -
Bad argument openProject when running SaveAsProjectTemplate.jsx
Hi
I have created a RoboHelp 8 project template and rolled it out to the team for use in an upcoming project.
Six authors have been able to load the project then, using the Script Explorer, have run the SaveAsProjectTemplate.jsx script to make it a project template. One author has attempted to run this script and been confronted with the error Bad argument openProject once they accepted the default location.
The installation process was identical for all seven machines, it activated/registered without a hitch and all available updates have been run on the seven machines (we are all on 8.0.2.208).
Does anybody know, please, why this error might be occuring on just one machine?
Many thanks
NigelHi Nigel and welcome to the RH forums. Things to try include:
Running one of the pre-installed scripts (e.g. Word Count).
Reinstalling the Extend Script add on.
The RoboColum(n)
@robocolumn
Colum McAndrew -
ORA-29261: bad argument after searching web service from IBM UDDI
I was following the steps listed in the Chapter 6 How to Implement a Web Service of "Database Express Edition 2 Day Plus Application Express Developer Guide" , after the steps of
To create a Web service reference by searching for a business name:
On Application Builder home page, click Shared Components.
Under Logic, select Web Service References.
The Web Service References page appears.
Click Create.
When prompted whether to search a UDDI registry to find a WSDL, select Yes and click Next.
For UDDI Location, select IBM UDDI and click Next.
On Search:
For Search Type, select Business Name.
In Name, enter:
%xMethods%
Click Search.
I got the error ORA-29261. Please help. ThanksVersion of APEX? Version of database?
Looks like you passed in a bad argument to a procedure... Maybe you should wrap the string in single quotes?
Thank you,
Tony Miller
Webster, TX
If vegetable oil is made of vegetables, what is baby oil made of?
If this question is answered, please mark the thread as closed and assign points where earned.. -
Bad argument #1 to "ipairs" error
Hi,
I use LR 2.1 on a Mac X 10.5.5.
I've been getting this error message: an internal error has occured, bad argument #1 to 'ipairs' (table expected, got userdata) when I try to use the create slideshows button in the Collections Panel in the Slideshow Module.
This happens mostly when I have reordered images to do the slideshow. The problem is intermittent, occurring about 95% of the time, so that I think it is fixed when it isn't. It occurs, though somewhat less frequently (maybe 85% of the time) if I have not reordered the images. It remains a major annoyance.
BTW, sometimes I can (and sometimes I can not) reorder the images in the slideshow module. Sometimes only in the Library module.
I have tried ALL that Adobe recommends both working with their tech support folks for hours and hours on the phone and by e-mail and on my own...
I've replaced the preferences file (any number of times), I've created any number of new catalogs, I've tried creating a new administrator file, I've created a tiny catalogue and just imported a few images etc, etc, etc. Each time I think it's resolved it's not.
Does anyone have any ideas about how to fix this or does anyone have any ideas for workarounds?
thanks
stephanie'IPAIRS' -Bad argument #1 ERROR UPDATE...
I originally posted here on 11/23 and after lots of long conversations with the good folks at Adobe and being "bumped up" to higher level tech support there is good news and bad news and I'm not really sure which is which :-)
The higher level tech support guy logged onto my computer, watched what I did (new catalog, safe mode, new admin file, 2 of adobe's images) and, after watching me, was able to recreate the error on his machine. I guess that's the bad news because the problem is now, clearly, not a bug that is in each of our hardware. Rather the bug is, as we were all figuring, in the program. It seems that the create web collection or create print collection or create slideshow collection, either on Mac or Windows, all give the same ipairs error.
(Oh, the good news is that means that I don't have to reinstall my OS).
Tech support's plan is to take this info to other people and at some point they'll decide whether to create a fix for the problem in the next, or later down the road, version of the program.
I'm told that the best way for the fix to end up happening is for EVERYONE who is having this problem to go to www.adobe.com and file feedback or a bug report. Squeaky wheels get the oil, as they say.
Stephanie -
"bad argument was passed" message error
Hello,
I have a message "A bad argument was passed to a manager function. VI "VI name" was stop at node 0x1CA94 of subVI "SubVI name".
I work with LabVIEW 6.0.3.
I develop the application on my laptop and test it and there are not problem to execute the application.
But on the industrial PC, the application plant and post this message when the application compiled but not when I lauch the application with the source code.
If I delete the subVI and I recall it in my VI, that resolve my problem ?
Thanks.I think what I stated earlier is almost definitely your problem. I see in configuration cycle .VI and the Initializer case a case where you use a global variable called VI path. I'm not sure where the global variable gets written to. But the path of a VI looks different in the development environment then it does in a compiled executable.
Development environment: c:\myfiles\mysub.vi
Compiled environment: c:\myfiles\myexecutable.exe\mysub.vi
By the way, when posting a large zip file like this with numerous sub-VI's. It is helpful if you state which one is the main or toplevel VI. It is even harder for someone who doesn't know your project to figure out which is the top VI when everything is written in a foreign language.
Message Edited by Ravens Fan on 08-22-2007 11:24 AM -
What does bad argument 0x10000003 mean on macbook pro
what does bad argument 0x10000003 mean on macbook pro during boot up after a question mark folder appearing?
At that point, I had taken one of the DIMs out to see if the RAM was the issue. I took it to the Apple Store and they said that the hard drive might be bad, so they wiped everything on the hard drive. After that, I was still experiencing the kernel panics. So another guy looked at it and said that it might be bad RAM. So I called the company and got them to send me more RAM and after inserting the new RAM, I still get kernel panics. I've been saving all the panic reports in a folder on my flash drive. Today I got a total of four. And then I got four the day before that. Mind you, this didn't start happening until I upgraded my system to Mavericks.
I really wish there was a way I could post them all so someone could look at them, cause to be honest, none of the code in it makes any sense to me. -
UTL_MAIL = ORA-29261: bad argument
Hi All,
I am using UTL_MAIL for the first time. I was tring execute UTL_MAIL without setting SMTP_OUT_SERVER
ORA-29261: bad argument
Is it mandatory to set SMTP_OUT_SERVER parameter to user UTL_MAIL?
Thanks in advance for the help.
Regards
Muralimuralirachakonda wrote:
I am using UTL_MAIL for the first time. I was tring execute UTL_MAIL without setting SMTP_OUT_SERVER
ORA-29261: bad argument
Is it mandatory to set SMTP_OUT_SERVER parameter to user UTL_MAIL?Yes. Else how is the UTL_MAIL code to know what the mail server hostname (or IP address) is, and what port to connect to? Lemme check...
Okay - had a look at the code. You do not need to explicitly set this paramater. UTL_MAIL checks for SMTP_OUT_SERVER. If this parameter does not exist or is null, then it uses the DB_DOMAIN parameter as the mail server's name.
Hmmm.. not sure that that will work as the standard is to use mail.domain.com and not domain.com for the domain's SMTP server.
Rather set SMTP_OUT_SERVER explicitly.
PS. Correction. The code is buggy (no surprises there), assuming the unwrapping worked correctly. The code does not cater for a NO_DATA_FOUND exception, the code that assigns the DB_DOMAIN will never be executed. To be honest - this code looks like it has been written by an utter PL/SQL n00b. Which is of concern as this is a standard Oracle PL/SQL supplied package.
Edited by: Billy Verreynne on Feb 4, 2011 6:06 AM -
I have been doing lots of healing on a shoot tonight and all of a sudden, I started getting an error every time I click with the heal tool. It also appears, that some of my past heals, are not being saved.
Any ideas of what I should do?
Thanks!'IPAIRS' -Bad argument #1 ERROR UPDATE...
I originally posted here on 11/23 and after lots of long conversations with the good folks at Adobe and being "bumped up" to higher level tech support there is good news and bad news and I'm not really sure which is which :-)
The higher level tech support guy logged onto my computer, watched what I did (new catalog, safe mode, new admin file, 2 of adobe's images) and, after watching me, was able to recreate the error on his machine. I guess that's the bad news because the problem is now, clearly, not a bug that is in each of our hardware. Rather the bug is, as we were all figuring, in the program. It seems that the create web collection or create print collection or create slideshow collection, either on Mac or Windows, all give the same ipairs error.
(Oh, the good news is that means that I don't have to reinstall my OS).
Tech support's plan is to take this info to other people and at some point they'll decide whether to create a fix for the problem in the next, or later down the road, version of the program.
I'm told that the best way for the fix to end up happening is for EVERYONE who is having this problem to go to www.adobe.com and file feedback or a bug report. Squeaky wheels get the oil, as they say.
Stephanie -
Solved! Bad processor! K7n2delta2-l
As it turns out, it was the processor that was bad.
For future reference, errors occuring in the memory range in the 0x804f22b8 type area is an ON DIE CACHE PROBLEM. You can tell anyone getting a bsod that the problem lies somewhere involved with the processor, be it heat, bad cache, inproper voltage, or what have you. Also, there's a bad batch of processors going around, as it turns out, there was a batch of processors slated for distruction that got redistrubuted by someone in china. *sigh* I got sold one of these by a shady pc shop owner. watch out for the 333 barton 3000+'s... especially if they are oem.
Anyway, thanks for all the help guys.
~~~~~~~~~~~~~~~~~~~~~~
Before you read by original post, I would like to clear a few things up. Here's the things I've tried, so before you go making assumptions, I'm going to save you the trouble of reading the whole thread.
1: Flashed bios from v30 to v11.5, same result, same bluescreen
2: Changed every single piece of hardware in my machine, including the case, and tested both pieces of hardware in different motherboards, without a single problem
3: Changed so many clock settings in my bios it's frightening, voltages, every single setting has been tested and retested
4: re-installed windows over and over, several versions of it, with my fsb set to 133, 166, 100, etc. Excepting setting it to 166, everything goes smoothly. At 166, the system has a hard crash during windows setup and restarts, with a IRQL... error in the same memory address.
5: Changed the power supply to one that was excessive for my needs, with a 28A output on the 12v rail.
6: Changed my heatsink and fans, my processor is developing frost... (just kidding, but it's darn cold)
And that's about it. I've done everything I can think of. I don't think that there's anything else I can do except assume the board is faulty at this point. I really don't want to send the board back at this point, it's brand new, and without it, I won't have a computer untill my other mobo comes back from RMA. *sigh* If you think you can help, read on.
After a power outtage, and losing my motherboard and cpu, I became a proud owner of a K7n2 delta2 platnum. Instantly, I plugged everthing in, started my maching, and wonderfully, since it was the same chipset, everything worked. Since my pc is primarially a work machine, I wasent going to mess around with anything as long as it worked. I finished my project, then decided to tweak my machine for optimum preformace and stability. Imagine my suprise when I discovered that the AMD AthlonXP 3000+ 333mhzFSB was underclocked, running with an fsb of 133. I pop into the bios, hit optomized defaults, reboot my machine. Posts fine, listing at 3000+, and I assume nothing is wrong. the machine works quite well untill I decided to push it a little. I load up ubisofts "beyond good and evil" and immediately start to notice artifacting, and flickering graphics, Vectors coming apart, and the like. At first, I figure it's my video card. I exit the game, hit restart and I BSOD with an IRQL_less_then_or_not_equal. I update ALL my drivers. Same problem. So, I swap it for another ATI based model, a few steps down. Suprisingly, the SAME video artifacts, same BSOD. The bsod seems to occur during some extended use. I have WINDBG, I'll post the crash dump at the bottom of this post. Oddly enough, if I run the machine at 100, or 133 fsb, I don't get this problem at all, and the machine is as solid as a rock, howver a little slower then I would prefer.
My hardware is as follows.
"Extreme Gamer" Case by antec
Nspire NSP-300p4b 300w PS
MSI K7N2 Delta2 Platnim-L
3x 256mb Crucial cas 2.5 333mhz ddr moduals
HISdigital ATI Radeon 9600XT Platnum edition
120gb seagate 7200rpm Barricuda
40GB Maxtor 7200rpm
Liteon 4x4x56x DVD burner
6x Lighted fans
Thermaltake Turbine copper heatsink (can't remember the model)
2x Stacked Firewire External HDD 20gb by QPSinc
Creative Webcam go plus.
Before you say it's power, I've unplugged everything except motherboard, videocard, heatsink and I only had 1 stick of ram installed, same problem.
However, I will humor the idea and buy a new PSU today, I'll let you know my findings,
Here's the crash dump I promised.
Same error, in the same memory location, EVERY SINGLE TIME.
Microsoft (R) Windows Debugger Version 6.4.0007.2
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\WINDOWS\Minidump\Mini032205-12.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
Symbol search path is: *** Invalid ***
* Symbol loading may be unreliable without a symbol search path. *
* Use .symfix to have the debugger choose a symbol path. *
* After setting your symbol path, use .reload to refresh symbol locations. *
Executable search path is:
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image ntoskrnl.exe, Win32 error 2
*** WARNING: Unable to verify timestamp for ntoskrnl.exe
*** ERROR: Module load completed but symbols could not be loaded for ntoskrnl.exe
Windows XP Kernel Version 2600 (Service Pack 2) UP Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Kernel base = 0x804d7000 PsLoadedModuleList = 0x8055ab20
Debug session time: Tue Mar 22 06:59:50.218 2005 (GMT-5)
System Uptime: 0 days 0:05:41.823
* Symbols can not be loaded because symbol path is not initialized. *
* The Symbol Path can be set by: *
* using the _NT_SYMBOL_PATH environment variable. *
* using the -y <symbol_path> argument when starting the debugger. *
* using .sympath and .sympath+ *
Unable to load image ntoskrnl.exe, Win32 error 2
*** WARNING: Unable to verify timestamp for ntoskrnl.exe
*** ERROR: Module load completed but symbols could not be loaded for ntoskrnl.exe
Loading Kernel Symbols
Loading unloaded module list
Loading User Symbols
* Bugcheck Analysis *
Use !analyze -v to get detailed debugging information.
BugCheck 1000000A, {28, 2, 0, 804f22b8}
***** Kernel symbols are WRONG. Please fix symbols to do analysis.
Followup: MachineOwner
kd> !analyze -v
* Bugcheck Analysis *
IRQL_NOT_LESS_OR_EQUAL (a)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high. This is usually
caused by drivers using improper addresses.
If a kernel debugger is available get the stack backtrace.
Arguments:
Arg1: 00000028, memory referenced
Arg2: 00000002, IRQL
Arg3: 00000000, value 0 = read operation, 1 = write operation
Arg4: 804f22b8, address which referenced memory
Debugging Details:
***** Kernel symbols are WRONG. Please fix symbols to do analysis.
MODULE_NAME: nt
FAULTING_MODULE: 804d7000 nt
DEBUG_FLR_IMAGE_TIMESTAMP: 41108004
READ_ADDRESS: unable to get nt!MmSpecialPoolStart
unable to get nt!MmSpecialPoolEnd
unable to get nt!MmPoolCodeStart
unable to get nt!MmPoolCodeEnd
unable to get nt!MiSessionPoolStart
unable to get nt!MiSessionPoolEnd
00000028
CURRENT_IRQL: 2
FAULTING_IP:
nt+1b2b8
804f22b8 8b7828 mov edi,[eax+0x28]
CUSTOMER_CRASH_COUNT: 12
DEFAULT_BUCKET_ID: COMMON_SYSTEM_FAULT
BUGCHECK_STR: 0xA
LAST_CONTROL_TRANSFER: from 805253e5 to 804f22b8
STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
a7fb6b90 805253e5 83924090 019e2000 c0300018 nt+0x1b2b8
a7fb6bc0 804ec10e c0006788 019e2000 00000000 nt+0x4e3e5
a7fb6c84 804ec204 00000008 01ae0fff 00000000 nt+0x1510e
a7fb6ca0 8056919a 019e0000 01ae0fff a7fb6d64 nt+0x15204
a7fb6d4c 804df06b ffffffff 0024c370 0024c378 nt+0x9219a
a7fb6d64 7c90eb94 badb0d00 00137150 a8cafd98 nt+0x806b
00137188 00000000 00000000 00000000 00000000 0x7c90eb94
STACK_COMMAND: .bugcheck ; kb
FOLLOWUP_NAME: MachineOwner
BUCKET_ID: WRONG_SYMBOLS
Followup: MachineOwnerLocks UP DURING WINDOWS INSTALL. Same error.
lol it's not the drivers for the 3rd time. :P
Tried the processor in another motherboard, under full strain. It's not the processor
Ran memtest86. No problems whatsoever, ram checks out, 100%
Here's my system summary, for those who want to see it.
Once again, this error only occurs with 166mhz fsb the system is 100% stable, functional, and works GREAT with 133fsb, but now my processor is underclocked. Please condsider this when you provide a possible solution, if it's not related to the system bus somehow, it's not the problem. Forget about software, or there being defects in all my other hardware, because it's all been tested OK. This is a problem with the motherboard, or compatability with my hardware, plain and simple.
[System Summary]
Item Value
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name STORMY
System Manufacturer NVIDIA
System Model AWRDACPI
System Type X86-based PC
Processor x86 Family 6 Model 10 Stepping 0 AuthenticAMD ~1726 Mhz
BIOS Version/Date Phoenix Technologies, LTD 6.00 PG, 1/20/2005
SMBIOS Version 2.2
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
User Name STORMY\ForeverConnected
Time Zone Eastern Standard Time
Total Physical Memory 768.00 MB
Available Physical Memory 566.90 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 1.83 GB
Page File C:\pagefile.sys
[Hardware Resources]
[Conflicts/Sharing]
Resource Device
I/O Port 0x0000A000-0x0000AFFF NVIDIA nForce2 AGP Host to PCI Bridge
I/O Port 0x0000A000-0x0000AFFF HIGHTECH RADEON 9600XT 256MB
I/O Port 0x00000000-0x00000CF7 PCI bus
I/O Port 0x00000000-0x00000CF7 Direct memory access controller
I/O Port 0x000003C0-0x000003DF NVIDIA nForce2 AGP Host to PCI Bridge
I/O Port 0x000003C0-0x000003DF HIGHTECH RADEON 9600XT 256MB
IRQ 20 Standard OpenHCD USB Host Controller
IRQ 20 NVIDIA Network Bus Enumerator
IRQ 21 Standard OpenHCD USB Host Controller
IRQ 21 Standard Enhanced PCI to USB Host Controller
IRQ 21 Realtek AC'97 Audio
I/O Port 0x0000B000-0x0000BFFF PCI standard PCI-to-PCI bridge
I/O Port 0x0000B000-0x0000BFFF VIA OHCI Compliant IEEE 1394 Host Controller
Memory Address 0xE4000000-0xE4FFFFFF PCI standard PCI-to-PCI bridge
Memory Address 0xE4000000-0xE4FFFFFF VIA OHCI Compliant IEEE 1394 Host Controller
Memory Address 0xC0000000-0xDFFFFFFF NVIDIA nForce2 AGP Host to PCI Bridge
Memory Address 0xC0000000-0xDFFFFFFF HIGHTECH RADEON 9600XT 256MB
Memory Address 0xA0000-0xBFFFF PCI bus
Memory Address 0xA0000-0xBFFFF NVIDIA nForce2 AGP Host to PCI Bridge
Memory Address 0xA0000-0xBFFFF HIGHTECH RADEON 9600XT 256MB
I/O Port 0x000003B0-0x000003BB NVIDIA nForce2 AGP Host to PCI Bridge
I/O Port 0x000003B0-0x000003BB HIGHTECH RADEON 9600XT 256MB
[DMA]
Resource Device Status
Channel 4 Direct memory access controller OK
Channel 2 Standard floppy disk controller OK
[Forced Hardware]
Device PNP Device ID
[I/O]
Resource Device Status
0x00004000-0x0000407F Motherboard resources OK
0x00004080-0x000040FF Motherboard resources OK
0x00004400-0x0000447F Motherboard resources OK
0x00004480-0x000044FF Motherboard resources OK
0x00004200-0x0000427F Motherboard resources OK
0x00004280-0x000042FF Motherboard resources OK
0x00005000-0x0000503F Motherboard resources OK
0x00005100-0x0000513F Motherboard resources OK
0x00000000-0x00000CF7 PCI bus OK
0x00000000-0x00000CF7 Direct memory access controller OK
0x00000D00-0x0000FFFF PCI bus OK
0x00000279-0x00000279 ISAPNP Read Data Port OK
0x00000274-0x00000277 ISAPNP Read Data Port OK
0x0000E400-0x0000E41F NVIDIA nForce PCI System Management OK
0x0000E000-0x0000E007 NVIDIA Network Bus Enumerator OK
0x0000D800-0x0000D8FF Realtek AC'97 Audio OK
0x0000DC00-0x0000DC7F Realtek AC'97 Audio OK
0x0000B000-0x0000BFFF PCI standard PCI-to-PCI bridge OK
0x0000B000-0x0000BFFF VIA OHCI Compliant IEEE 1394 Host Controller OK
0x0000F000-0x0000F00F NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
0x000001F0-0x000001F7 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
0x000003F6-0x000003F6 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
0x00000170-0x00000177 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
0x00000376-0x00000376 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
0x000009F0-0x000009F7 NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x00000BF0-0x00000BF3 NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x00000970-0x00000977 NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x00000B70-0x00000B73 NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x0000CC00-0x0000CC0F NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x0000D000-0x0000D07F NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
0x0000A000-0x0000AFFF NVIDIA nForce2 AGP Host to PCI Bridge OK
0x0000A000-0x0000AFFF HIGHTECH RADEON 9600XT 256MB OK
0x000003B0-0x000003BB NVIDIA nForce2 AGP Host to PCI Bridge OK
0x000003B0-0x000003BB HIGHTECH RADEON 9600XT 256MB OK
0x000003C0-0x000003DF NVIDIA nForce2 AGP Host to PCI Bridge OK
0x000003C0-0x000003DF HIGHTECH RADEON 9600XT 256MB OK
0x00000010-0x0000001F Motherboard resources OK
0x00000022-0x0000003F Motherboard resources OK
0x00000044-0x0000005F Motherboard resources OK
0x00000062-0x00000063 Motherboard resources OK
0x00000065-0x0000006F Motherboard resources OK
0x00000074-0x0000007F Motherboard resources OK
0x00000091-0x00000093 Motherboard resources OK
0x000000A2-0x000000BF Motherboard resources OK
0x000000E0-0x000000EF Motherboard resources OK
0x00000B78-0x00000B7B Motherboard resources OK
0x00000F78-0x00000F7B Motherboard resources OK
0x00000A78-0x00000A7B Motherboard resources OK
0x00000E78-0x00000E7B Motherboard resources OK
0x00000BBC-0x00000BBF Motherboard resources OK
0x00000FBC-0x00000FBF Motherboard resources OK
0x000004D0-0x000004D1 Motherboard resources OK
0x00000290-0x00000297 Motherboard resources OK
0x00000020-0x00000021 Programmable interrupt controller OK
0x000000A0-0x000000A1 Programmable interrupt controller OK
0x00000080-0x00000090 Direct memory access controller OK
0x00000094-0x0000009F Direct memory access controller OK
0x000000C0-0x000000DF Direct memory access controller OK
0x00000040-0x00000043 System timer OK
0x00000070-0x00000073 System CMOS/real time clock OK
0x00000061-0x00000061 System speaker OK
0x000000F0-0x000000FF Numeric data processor OK
0x000003F0-0x000003F5 Standard floppy disk controller OK
0x000003F7-0x000003F7 Standard floppy disk controller OK
0x000003F8-0x000003FF Communications Port (COM1) OK
0x000002F8-0x000002FF Communications Port (COM2) OK
0x00000378-0x0000037F Printer Port (LPT1) OK
0x00000778-0x0000077B Printer Port (LPT1) OK
[IRQs]
Resource Device Status
IRQ 9 Microsoft ACPI-Compliant System OK
IRQ 5 NVIDIA nForce PCI System Management OK
IRQ 21 Standard OpenHCD USB Host Controller OK
IRQ 21 Standard Enhanced PCI to USB Host Controller OK
IRQ 21 Realtek AC'97 Audio OK
IRQ 20 Standard OpenHCD USB Host Controller OK
IRQ 20 NVIDIA Network Bus Enumerator OK
IRQ 19 VIA OHCI Compliant IEEE 1394 Host Controller OK
IRQ 14 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
IRQ 15 NVIDIA MCP2S Parallel ATA Controller (v2.6) OK
IRQ 22 NVIDIA MCP2S Serial ATA Compatible Controller (v2.6) OK
IRQ 16 HIGHTECH RADEON 9600XT 256MB OK
IRQ 0 System timer OK
IRQ 8 System CMOS/real time clock OK
IRQ 13 Numeric data processor OK
IRQ 6 Standard floppy disk controller OK
IRQ 4 Communications Port (COM1) OK
IRQ 3 Communications Port (COM2) OK
[Memory]
Resource Device Status
0xD5800-0xD7FFF System board OK
0xF0000-0xF7FFF System board OK
0xF8000-0xFBFFF System board OK
0xFC000-0xFFFFF System board OK
0x2FFF0000-0x2FFFFFFF System board OK
0xFFFF0000-0xFFFFFFFF System board OK
0x0000-0x9FFFF System board OK
0x100000-0x2FFEFFFF System board OK
0xFEC00000-0xFEC00FFF System board OK
0xFEE00000-0xFEE00FFF System board OK
0xA0000-0xBFFFF PCI bus OK
0xA0000-0xBFFFF NVIDIA nForce2 AGP Host to PCI Bridge OK
0xA0000-0xBFFFF HIGHTECH RADEON 9600XT 256MB OK
0xC0000-0xDFFFF PCI bus OK
0x30000000-0xFEBFFFFF PCI bus OK
0xE7001000-0xE7001FFF Standard OpenHCD USB Host Controller OK
0xE7002000-0xE7002FFF Standard OpenHCD USB Host Controller OK
0xE7003000-0xE70030FF Standard Enhanced PCI to USB Host Controller OK
0xE7000000-0xE7000FFF NVIDIA Network Bus Enumerator OK
0xE7004000-0xE7004FFF Realtek AC'97 Audio OK
0xE4000000-0xE4FFFFFF PCI standard PCI-to-PCI bridge OK
0xE4000000-0xE4FFFFFF VIA OHCI Compliant IEEE 1394 Host Controller OK
0xE5000000-0xE6FFFFFF NVIDIA nForce2 AGP Host to PCI Bridge OK
0xC0000000-0xDFFFFFFF NVIDIA nForce2 AGP Host to PCI Bridge OK
0xC0000000-0xDFFFFFFF HIGHTECH RADEON 9600XT 256MB OK
0xE0000000-0xE3FFFFFF NVIDIA nForce2 AGP Host to PCI Bridge OK
0xE6000000-0xE600FFFF HIGHTECH RADEON 9600XT 256MB OK
0xD0000000-0xDFFFFFFF HIGHTECH RADEON 9600XT 256MB - Secondary OK
0xE6FF0000-0xE6FFFFFF HIGHTECH RADEON 9600XT 256MB - Secondary OK -
[Solved]502 bad gateway nginx. uwsgi, flask
Ok so I developed a web app in python and it worked with the internal server:
if __name__ == '__main__':
app.app.run(debug = True)
with no issue at all. I am now trying to start up a nginx server with uwsgi running on arch linux, here are the config files:
the config.py for my app:
CSRF_ENABLED = True
SECRET_KEY = "you'll-never-know"
PROPAGATE_EXCEPTIONS = True
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
/etc/nginx/nginx.conf:
user http;
worker_processes 2;
events {
#worker_connections 1024;
worker_connections 2048;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 70;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml;
gzip_vary on;
gzip_comp_level 6;
include /etc/nginx/sites-enabled/*;
/etc/nginx/sites-enabled/test.conf
upstream test-server {
server unix:/run/uwsgi/test.sock;
#server 127.0.0.1:3031
server {
listen 80;
server_name "";
return 444;
server {
server_name 192.xxx.x.xxx;
listen 80;
root /srv/http/test-dir/src/app;
location /static {
alias /srv/http/test-dir/src/app/static;
location / {
include /etc/nginx/uwsgi_params;
uwsgi_pass test-server;
# rewrite ^ https://$server_name$request_uri? permanent;
/etc/uwsgi/emperor.ini
[uwsgi]
emperor = /etc/uwsgi/vassals
#master = true
#plugins = python2
uid = http
gid = http
/etc/uwsgi/vassals
[uwsgi]
chdir = /srv/http/test-dir/src
wsgi-file = run.py
callable = app
processes = 4
threads = 2
offload-threads = 2
stats = 127.0.0.1:9191
max-requests = 5000
enable-threads = true
#master = true
vacuum = true
#socket = 127.0.0.1:3031
socket = /run/uwsgi/test.sock
chmod-socket = 664
harakiri = 60
logto = /var/log/uwsgi/test.log
/var/log/uwsgi/test.log
*** Starting uWSGI 2.0.9 (64bit) on [Wed Mar 25 17:17:53 2015] ***
compiled with version: 4.9.2 20150204 (prerelease) on 28 February 2015 13:34:10
os: Linux-3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015
nodename: MyServer
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /etc/uwsgi/vassals
detected binary path: /usr/bin/uwsgi
chdir() to /srv/http/test-dir/src
your processes number limit is 13370
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /run/uwsgi/test.sock fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 415360 bytes (405 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 1349)
spawned uWSGI worker 1 (pid: 1350, cores: 2)
spawned uWSGI worker 2 (pid: 1351, cores: 2)
spawned 2 offload threads for uWSGI worker 1
spawned uWSGI worker 3 (pid: 1355, cores: 2)
spawned uWSGI worker 4 (pid: 1356, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 16 ***
spawned 2 offload threads for uWSGI worker 3
spawned 2 offload threads for uWSGI worker 4
spawned 2 offload threads for uWSGI worker 2
-- unavailable modifier requested: 0 --
announcing my loyalty to the Emperor...
-- unavailable modifier requested: 0 --
announcing my loyalty to the Emperor...
As stated I am generating a 502 error when I connect to the servers internal address, this is coming out of the nginx error log:
2015/03/25 17:21:07 [error] 1340#0: *3 upstream prematurely closed connection while reading response header from upstream, client: [me], server: 192.xxx.x.xxx, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/run/uwsgi/test.sock:", host: "192.xxx.x.xxx"
http owns the socket so: ls -ld /run/uwsgi/test.sock
srw-rw-r-- 1 http http 0 Mar 25 17:17 /run/uwsgi/test.sock
I think I have everything on the uwsgi side installed: sudo pacman -Ss uwsgi
community/mod_proxy_uwsgi 2.0.9-3
Apache uWSGI proxy module
community/uwsgi 2.0.9-3 [installed]
A fast, self-healing and developer/sysadmin-friendly application container server coded in pure C
community/uwsgi-plugin-cgi 2.0.9-3
CGI plugin
community/uwsgi-plugin-jvm 2.0.9-3
Plugin for Jvm support
community/uwsgi-plugin-lua51 2.0.9-3
Plugin for Lua support
community/uwsgi-plugin-mono 2.0.9-3
Plugin for mono support
community/uwsgi-plugin-php 2.0.9-3
Plugin for PHP support
community/uwsgi-plugin-psgi 2.0.9-3
Perl psgi plugin
community/uwsgi-plugin-pypy 2.0.9-3
Plugin for PyPy support
community/uwsgi-plugin-python 2.0.9-3
Plugin for Python support
community/uwsgi-plugin-python2 2.0.9-3 [installed]
Plugin for Python2 support
community/uwsgi-plugin-rack 2.0.9-3
Ruby rack plugin
community/uwsgi-plugin-webdav 2.0.9-3
Plugin for webdav support
I had
plugins = python2
enabled [yes this is python2.7] in the main emperor.ini but it didn't do anything, either it is not needed or in the wrong spot. I have read a couple of other things here and at each packages site, not quite sure what I am missing though, but it is something. Thanks.
Last edited by Never (2015-04-01 02:16:33)Two things I think helped to solve this
PROPAGATE_EXCEPTIONS = True
in config.py and I removed threading from my vassal ini file the ending uwsgi files looked like this:
/etc/uwsgi/emperor.ini:
[uwsgi]
emperor = /etc/uwsgi/vassals
master = true
plugins = python2
uid = http
gid = http
[/etc/uwsgi/vassals/test.ini:
[uwsgi]
chdir = /srv/http/test_dir/src
wsgi-file = run.py
callable = app
processes = 4
stats = 127.0.0.1:9191
max-requests = 5000
enable-threads = true
vacuum = true
thunder-lock = true
socket = /run/uwsgi/test-sock.sock
chmod-socket = 664
harakiri = 60
logto = /var/log/uwsgi/test.log
Not sure on the
PROPAGATE_EXCEPTIONS = True
but removing the threads option in test.ini and making sure there was a master option in emperor.ini seemed to have solved the issue of sql being tossed around to different treads, or at least it complaining about it and crashing the site out, either or.
Also don't use the uwsgi from this distribution, get it from pip, the distros are broken. -
[SOLVED] Iptables doesn't allow pacman -S(y) anymore...
Hi there,
First of all, sorry for my english .
I've just configured my firewall, but now i can't get pacman working great. Nowatime I can't synchronise, and i can't install anything. So, I think that pacman use port number 80, but iam not sure. I did make some searches but could not find anything on the port used.
So here are my rules :
#!/bin/sh
# Flush and delete all rules
sudo iptables -F
sudo iptables -X
sudo iptables -t nat -F
# Keep connections open
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
##INPUT
# Allow ssh
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
# Allow ping
#iptables -A INPUT -p icmp -j ACCEPT
# Allow HTTP
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
# Allow SMTP & POP
iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 993 -j ACCEPT
# Allow NNTPS
iptables -A INPUT -p tcp --dport 563 -j ACCEPT
# Allow JABBER
#iptables -A INPUT -p tcp --dport 5222 -j ACCEPT
#iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
#iptables -A INPUT -p udp --dport 8000 -j ACCEPT
#iptables -A INPUT -p tcp --dport 21 -j ACCEPT
##Default rules
# Block all INPUT & FORWARD
iptables -P INPUT DROP
iptables -P FORWARD DROP
# block all OUTPUT
iptables -P OUTPUT DROP
##LOOPBACK
# Allow loopback
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
##OUTPUT
# Allow FTP, DNS, HTTP, HTTPS
iptables -A OUTPUT -p tcp --dport 20 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 53 -j ACCEPT
iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 563 -j ACCEPT
# Allow SMTP, POP & IMAP
iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 110 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 143 -j ACCEPT
# Allow NTP
iptables -A OUTPUT -p tcp --dport 123 -j ACCEPT
iptables -A OUTPUT -p udp --dport 123 -j ACCEPT
# Allow SSH
iptables -A OUTPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p udp --dport 22 -j ACCEPT
# Allow WHOIS
iptables -A OUTPUT -p tcp --dport 43 -j ACCEPT
# Allow USENET
#iptables -A OUTPUT -p tcp --dport 119 -j ACCEPT
#iptables -A OUTPUT -p tcp --dport 8000 -j ACCEPT
#iptables -A OUTPUT -p udp --dport 8000 -j ACCEPT
Can you help me get it working great please?
Thanks a lot friends
Last edited by madnerves (2009-05-06 08:41:18)We need to know whether you're syncing to a HTTP or an FTP mirror too... I suppose FTP.
Make sure you have the ip_conntrack_ftp module loaded (kernel module, that is). Restart the firewall, and if you have all the right ports allowed, it should work fine.
Maybe you are looking for
-
I've had it for just over a year and out of no where hte music started freezing everytime i played a song. I had to restart it every time I ended up restoring it to factory settings and now my computer won't even recognize it and you can feel and hea
-
Multiple subtitles in Web Gallery
I have 5 albums in Aperture. When I create a web gallery, I want show each album with a sepearte subtitle. How can I do that ? Appreciate any help.
-
How do I transfer my hundreds of pdf files in various folders in iBooks on my mini iPad to the unpopulated folders in iBooks on my new iMac computer?
-
Gettine error when importing .docx form into LiveCycle
I'm getting an error in LiveCycle Designer 8.21 when I attempt to open a form that a co-worker created as a .docx form with text fields and select boxes. Every time I get the alert that "Word (version XP or onwards) could not be found on the machine"
-
Anyone know whether a KVM switch will cause image degradation? if so, where does the degradation come from? ray