I would like have a password for accessing my web site which works fine. I also want for the specific site to allow access only for a specific range of ips. Right now the following config should forbid my access, as my ip is different from 200.200.200.*
Ubuntu LTS 8.04 + DHCP. Works fine except for fixed addresses. I mean all devices which need to get fixed IP according to their MACs don't get them and keep to receive random IPs from the range (although almost everytime all machines receive the same IP they got from DHCP for the first time).
The following config was created by Webmin interface.
At the one of the ubuntu forums i was advised to carry host description out of the subnet description.
Code: # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. #Listen 12.34.56.78:80 Listen 80
And when I try to start the server, I get the following
Code: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80. I did have an Apache web server up and running about 6 or 7 years ago - but seem to have lost everything
I'm working with Fedora and SELinux and am having a problem. I need to allow apache's http daemon to use arp (for getting some mac addresses). I have changed the type of the arp executable to httpd_sys_context_t but am still having an issue. Here is the messages log: Detailed Description:
I have tried several places for help but I am getting no where...Here is my background.I have spent all weekend to replicate my development server back at home. I have an Apache remote server with 3 IP based virtual hosts pointing to
[URL]
Now I have been able to set up a VM on my desktop, installed the OS, the applications, the db server, apache etc. Everything is looking good so far. So right now I have,
[URL]
So when I go to 192.168.0.111, I go to [URL] so I guess apache is working aswell.What I want to do is, instead of going to [URL] I want to change it to another address such as a.me.add1How can I do this? I am looking through the virtual hosts section, I have changed server name entry etc but its not working.Can you tell me in big picture what I would need to do to set that up? My current set up doesnt really help me much once the site get the www address.tell me if Document Root of IP address 192.168.0.111 points to [URL] will it always resolve into that webaddress. That is if I enter 192.168.0.111 the browser will redirect it to [URL].
I am planning on installing an Apache server today. I know how to get it to point to addresses like "localhost" or my outside ip, but how do I get it to point to a URL like [URL]? (That's just an example URL)
Our router is pretty old and only capable of giving fixed ip and there is no support for IPv6. Via the gnome networkmanager I try to set a manual IP to 192.168.1.123 and a netmask to 255.255.255.0 and a default gw at 192.168.1.1 . However, this does not work.
If I open a terminal and type:
Code: sudo ifconfig eth0 inet 192.168.1.123 sudo route add default gw 192.168.1.1 Then I get a perfectly valid connection to the internet. ifconfig by it self returns:
[Code]....
ffor me it seems that the gnome network manager doesn't save the information that I gently ask it to.
I can fix it with the CLI commands, but I would like to know whats going on.
For some time, I've had DSL and used Fixed-IP internally. I moved, no DSL, no cable, no nuthin' but dial-up and flaky cell-phone modem. Ugh. Along comes American Recovery and Reinvestment Act providing funding for making high-speed internet available to those of us in the boonies; no up-front or monthly equipment costs, affordable monthly changes, whoo-boy, that's for me. Installed, works, bada-boom, bada bing.
I have three servers, a network printer and a large format pen plotter that have all happily played together with fixed-IP for years connected via a Linksys BEFSR41 router and CAT-5 or CAT-6 cables and I do not want to screw around with DHCP (and the printer and plotter don't particularly like DHCP in any event). The servers talk to each other with SSH, their names and addresses are in /etc/host and all has been well with the world. DSL connected with PPPoE, HughesNet connects "automatically" to the modem with DHCP. I also have a switch available for additional LAN stuff as needed. Of course I had to do a hard reset of the router when setting up HugheNet (right back to infancy).
I do need to have DHCP enabled in the router for the limited occasions that a Winders thing gets connected to it (not my box, I don't mess with it).
Now, the actual question: is there any setting in the router that will enable fixed-IP, ignore DHCP leases unless the server is running DHCP (like a Winders box) and not bother me with screwy lease addresses that override my fixed-IP addresses? My servers are running Slackware 13.1, all configured with fixed-IP, all configured to "know" each other via /etc/hosts, /etc/resolv.conf has DNS Server address in it (and DHCP is not permitted to overwrite /etc/resolv.conf.
Assume I installed originally CentOS Desktop with IP receiving from DHCP server.Later I decided to assign a fixed IP to the local CentOS installation.How do I switch (permanently) the dynamic DHCP IP assignment to a fixed IP?
Ubuntu server 9.10. I have configured my network connection using GUI Network connection. It worked fine with DHCP, but when I assigned a fixed IP eth0 has disappeared. How can I restore it?
I am trying to audit my wireless router due to someone in the neighbourhood hacking it, and have run into a few problems. When I run airodump-ng, everything works fine. However, when I try to get the .csv file and run "airodump-ng -w test --channel 6 --bssid ---------- mon1" (obviously with my the mac address of my AP instead of x's) I get this:
CH 6 ][ Elapsed: 4 s ][ 2011-02-02 17:48 ][ fixed channel mon1: -1 ] The problem is the [ fixed channel mon1: -1 ], because when I go to the next step to try to force a handshake, it says:
18:00:34 Waiting for beacon frame (BSSID:-----------) on channel -1 18:00:34 mon1 is on channel -1, but the AP uses channel 6
I have scoured the Internet for answers, and have seen several people with the same problem, but no solutions that work for me. I think it may have something to do with the driver. I really do apologise if this has been answered properly several times, but none of the solutions seem to be working in my case.
I boot some Slackware with PXE. All work fine except i can't fix the client lockd ports.NFS is compiled inside the kernel, so all modprobe.d options are useless.But rpcinfo -p on the client side shows me totally different ports.On the NFS server, the ports are ok, as i appended lines in /etc/lilo.conf Server and client kernels/modules are identical.
When I install Fedora 10 on a new system, I let it default to DHCP. Later, I change the system to a fixed IP address by running system-config-network, selecting eth0, clicking on "Edit", clicking on "Statically set IP addresses:" and filling in the blanks. Is it possible to accomplish the same thing using commands that could be entered in a script? I assume one of them would be
Does anyone know a good program to log ip addresses when visited or connecting to your machine? Something like tcpdump but for ip addresses, I forgot what its called.
Is it possible to configure two IP addresses using one NIC? I'm implementing a VPN server on network 192.168.1.0, ultimately to be accessed over the Internet and through an ADSL router with port-forwarding to the server. Right now I'd like to test it on the LAN, but with the VPN client and server both on the 192.168.1.0 network, that test would not be be valid.
If I had a spare NIC I could put the server on both the 192.168.1.0 network and, say, a 10.0.0.0 network, configure the client on 10.0.0.0 and test. Not having a spare NIC, I'm wondering if it is possible to configure the server with two IP addressese NIC.Virtualising hosts are able to do something similar when running guests with NICs in bridged mode. Log files show they switch eth0 into promiscuouse.In case it matters the server OS is Slackware 13.0.
I've used two internet services to show me my IP address, and I get different results:1. Whatsmyip.org : ***.**.109.***2. ipchicken.com : ***.**.111.***All the * numbers are same, except 109 and 111. (or link me to explanation) of which one's which?
My machine has ONE ethernet card and is on a LAN.IP address is assigned to hosts using DHCP.I can have more than one MAC address on LAN by running Virtual Machine and setting network to bridged. This way, my virtual machine simply acts like there is one more machine in the network.Running VMWare for this job is a a bit heavy on resources. Is there a way so that I can I can have 2 or more ip addresses with different MAC address on the same machine without having to run VirtualBox.
By googling, I think its related to bridging and tap. And, I am sure thatts NOT IP-ALIASING because in ip-aliasing both the ip addresses have the same MAC address.Basically, I want my system to have interfaces like:-eth0 - which was originally presentlo- thats always present :|newint0 - New interface with new MAC address and IP addresses which can access my LAN directly. Its like if I bind, let us suppose curl to this interface, its like a different connection
I have connected my computer to network. Computers in network have dynamic ip address which is assigned by ADSL modem's DHCP. Besides this I want to have static IP address for same NIC. So is it possible to have both static and dynamic IP address for single NIC? If so how can I assign it using command and also in GUI?
I have a Dell Inspiron 1545 with Ubuntu Karmic that was working like a charm until last week.When I'm using my college's wireless I can browse just fine, but when I'm in my home's network the web addresses cannot be resolved.I was suspecting of DNS error, but it's the same DNS address in all the other computers, and the whole network is working just fine.The thing is that if I use the IPs, for instance 64.233.163.104 for Google, it works fine, both pinging and browsing. So the problem is in resolving the addresses...
I am running a dual boot PC, Ubuntu 10.10 & Win7. I do sticky static IPs on my local network, but it doesn't work cause the Ethernet adapter gets a different MAC address in Windows 7 (EF:9F:E9:F7:F7:F7) than it shows for Ubuntu 10.10 (00:13:74:00:5C:3. I am not sure if this is a Windows problem or something up with Ubuntu. The card is an on-board Atheros L2 fast Ethernet adapter. I have tried updating the drivers in Windows & nothing is working.
I would like to know if a rule has been applied to the iptables.active file to accept direct connections on port 22 through an IP address, can I also add a mac address/addresses to the rules such that if I am not on the network with the accepting IP address, that my MAC address will still get me in?
I am looking for a command which, when typed from the command line, returns the ip-addresses of the DNS nameservers that my ISP is using.I think is should be technically possible to write a program that does this, because linux installers set up /etc/resolv.conf correctly (as does knoppix). But I've been unable to find a command that does it. Is there one, and if so, what is it called?
I do not currently fully understand relationship between binary numbers and ip addresses and subnet addresses; nor am I asking for an explanation here at LQ, when there are plenty at wikipedia and other places...
Even after reading the wikipedia article on it, I still don't grasp it completely, so I was hoping that someone who grasps it in its entirety could answer a simple question.
How can I express the range of ip addresses from 172.22.22.200 - 172.22.22.230 ?
I was trying to make a rule for iptables that only did nat on that specific range of ips, and when i tried used the "-s" flag followed by 172.22.22.200/11 it always changes to 172.0.0.0/11 in the actual rule that is created and displayed by iptables -t nat -L.
I already have many hosts defined on my network, and rather than going through each one and changing its ipaddress to 172.0.0.#, I was hoping to learn a way to represent them in the iptables rule.
I am using DHCP on my home network. There could be as many as 5 computers logged in at any given time. Their IP addresses change depending on the sequence they log in.I want to be able to connect to them from any of them (some wired, some wireless) and share files by issuing a mount command for the appropriate shared drive.My question is how to get the IP of each computer when I only know the names of the computers. Pinging the computer name succeeds, but it does not give the IP.In other words I am looking for a Linux command that will come back with a list of IP's with their corresponding computer names so I can issue the right mount command. I would like to issue this command from a Linux terminal, but would also be happy to issue it from a Windows XP station.
I'm on Fedora core 14 linux. and I'm online with the HSPDA modem. My modem is /dev/ttyUSB0 and when it's dialed it creates the interface /dev/ppp0 , My question is when I hit ifcofig it shows two IP addresses in the ppp0 interface.
Code:
[nature@localhost ~]$ ifconfig eth0 Link encap:Ethernet HWaddr 20:6A:8A:12:CF:53 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
[code]....
when I get the routing table, the gateway is setten to the 10.64.64.64 and when I look my Ip address global I found it's 175.157.64.119.
I noticed when looking at visitor stats for a web page, most users IP address resolves to a city. But for some visitors, the city is "location not available". How can someone get an IP address that's off the map? Where I'm seeing this is in the stats for an awurl.com link.
My Linux gateway has multiple address to internet: eth0 = 76.148.200.3 eth0:0 = 76.148.200.4 eth0:1 = 76.148.200.5 and it's own gateway which is 76.148.200.2 (probably not relevant) and I also have which is not internet, but local: eth0:2 = 192.168.0.1 netmask 255.255.255.0
They all work fine and tested. Now I am sharing the internet through eth0 (76.148.200.3) to 192.168.0.1/24 and that's working fine. The script I use to do that is here...
Code: #!/bin/sh echo 1 >/proc/sys/net/ipv4/ip_forward echo 1 >/proc/sys/net/ipv4/ip_dynaddr iptables -t nat --flush iptables -A FORWARD -i eth0 -d 192.168.0.1/24 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -s 192.168.0.1/24 -o eth0 -j ACCEPT iptables -A FORWARD -j LOG iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Now all I want to change in the script is to share it through 76.148.200.4 (eth0:1) instead of what is already sharing through 76.148.200.3 (eth0). I am sure this is easy but can't work it out and iptables doesn't accept 'aliases'. How I can do this by modifying this script?
Hopefully Ody has found a result in the 5 years since he posted this question, for anyone else looking for an answer NMAP scan for a range of individual IP's can be done using the '-' for example: (this is accurate as of 2010, actual results have been altered to match OP's address range)
$nmap -sP 192.168.0.1-14
Starting Nmap 5.00 ( http://nmap.org ) at 2010-12-22 09:55 Interesting ports on 192.168.0.1: Not shown: 999 closed ports PORT STATE SERVICE 80/tcp open http
Interesting ports on 192.168.0.2 Not shown: 999 closed ports PORT STATE SERVICE 80/tcp open http
Interesting ports on 192.168.0.3: Not shown: 999 closed ports PORT STATE SERVICE 80/tcp open http
Nmap done: 14 IP addresses (3 hosts up) scanned in 8.08 seconds