Debian Configuration :: Routing With Interface Aliases?

Apr 3, 2010

I'm facing a strange networking problem here. I'm running Debian Lenny in an OpenVZ container and my network setup is as follows:

link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host

[code]...

View 4 Replies


ADVERTISEMENT

Debian Configuration :: Why Does /etc/aliases Choke On Email Addresses

Dec 21, 2010

Related to my last post in that it is another email issue, but something else I am having a problem with.

Debian Lenny on virtual KVM (32-bit, v5.0.7)

With Postfix it is necessary to have an alias for root, eg: root: someuser

In theory, and as far as I am aware, this can also be something like: root: someone@someaddress.tld

When I use the latter, though, the following happens whenever my system tries to redirect root email messages, but not when I use the root: someuser method in the aliases file (and, yes, I do know to use newaliases after amending the file).

The firewall is not an issue (tested with and without the firewall), nor are the resolvers, and the DNS for accounts on the box is all okay and fully propagated. Also, changing the email address to something like this.address@google.com does not work, either, - same error message.

View 2 Replies View Related

Debian Configuration :: Policy Routing Squid On VPN

Jan 22, 2010

I'm having trouble to configure my debian (2.6.26-2-686) with some routing tuning. In fact, I have a VPN provider. I want my Squid Proxy use this VPN provider and I have to use policy routing because my ISP forbid IP spoofing.

View 2 Replies View Related

Debian Configuration :: Routing - Forward All Traffic To An Ip To Another Ip?

Jul 25, 2010

I need to be able to do the following: Physical Router located at 192.168.40.1 On Ubuntu 10.04 Lucid machine:

eth0 with static ip 192.168.40.2
eth1 with static ip 192.168.40.3
eth2 with static ip 192.168.40.4

Associate a virtual address to eth1 with an entirely different network address such as 192.168.50.1 Do the same (virtual address) for eth2 -- e.g. 192.168.60.1 In the application:

register phone number A at 192.168.40.1 (The application will automatically use eth0 for this)
register phone number B at 192.168.50.1
register phone number C at 192.168.60.1

Somehow forward all traffic (including the register request) sent to 192.168.50.1 to 192.168.40.1 as if the register had been made directly to 192.168.40.1. In other words, the app "sends" registration and traffic to 192.168.50.1 but then Ubuntu forwards it to 192.168.40.1 (but the app does not know that). Similarly, forward all traffic sent to 192.168.60.1 to the router at 192.168.40.1.

Do the same for the reverse, forward all traffic that the router sends back to 192.168.40.3 (eth1) to 192.168.50.1 (within the Ubuntu machine) so that the app knows it is for phone B. Similarly forward all traffic that the router sends back to 192.168.40.4 (eth2) to 192.168.60.1 so that the app knows it is for phone C. Thus, the application believes that it is registering at 3 completely separate routers on 3 completely separate networks via 3 separate network interfaces but in fact is really registering all three to the same router (but does not know that). Similarly, the router believes that it is receiving 3 separate registrations because it receives each registration request and traffic from 3 separate interfaces and thus 3 separate mac addresses (i.e., of eth0, eth1, and eth2). Traffic sent to and from the router for each of the 3 phone numbers (via eth0, eth1, and eth2) are not mixed because the translation happens in both directions.

View 10 Replies View Related

Ubuntu Networking :: Routing Over Certain Interface Using Iptables?

Feb 24, 2011

I am establishing a VPN connection with a Cisco VPN server, but only want outgoing connections to a certain set of IP addresses to actually go through the VPN. I tried something like this:

Code:
sudo iptables -A OUTPUT -t mangle -p tcp -d 111.222.0.0/16 -j ROUTE --oif tun0
but keep getting

[code]...

View 4 Replies View Related

Networking :: Virtual Interface Routing For Clients And Rate Limitations?

Jul 14, 2010

I need to make some solution for my home network, I have a linux server which is: Linux Centos 5.5. So, what I need to do is to make a virtual interface for my clients which set its bandwidth up to 1Mb/s shared to them, but my real bandwidth is 2Mb/s. Also, after that, I have two questions:

1. How to set this rate limitation to that interface?
2. How to edit this interface to let it work and route the client data to my ADSL router?

I'm already generate the virtual interface using webmin managment tool, so I need to set its rate and route data.

View 14 Replies View Related

Debian Configuration :: KVM / One Interface / Multiple IP Addresses

Dec 27, 2015

I'm renting a server which comes with 5 IP addresses, but only one network device. From what I can understand I'm able to create aliases by adding entries to /etc/networks/interfaces, I haven't tried I'm in the planning stages. Hypothetically, 192.168.22.30 is my primary IP and I want to set eth0:1 to have 192.168.22.31, and then after that I want to create a virtual machine (using kvm/qemu) that is able to communicate bidirectionally to the internet over eth0:1, and leave eth0 strictly for administrating (not for VM traffic).

The qemu guides I'm finding seem to assume that I want to use TAP or VDE, what I want to use is a sub-ip/alias. One guide I saw had me eliminate everything from eth0 and put it under br0. That would leave me unable to ssh into my server (and unable to administrate). Is there a way I can do something along the lines of: qemu [options] -net [option] -netdev=eth0:1 ?

View 1 Replies View Related

Debian Configuration :: Bind A Port To Interface

Jan 31, 2016

Is is possible, via iptables or something similar, to bind a service running on a specific port to a specific interface? My case: I use a VPN service for privacy. I would like to have all traffic except ftp and ssh to run over tun0. Ports 21 and 22 will need to be accessible to the outside world (eth0) while the VPN is running.

View 3 Replies View Related

Debian Configuration :: Wireless Interface - Unknown Error 132

Apr 18, 2010

After updating and subsequently restarting today, I can no longer bring up my wireless interface:

ifup wlan0
SIOCSIFFLAGS: Unknown error 132
Could not set interface 'wlan0' UP
SIOCSIFFLAGS: Unknown error 132
SIOCSIFFLAGS: Unknown error 132
Failed to bring up wlan0

iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

wlan0IEEE 802.11abg ESSID: off/any
Mode: Managed Access Point: Not-AssociatedTx-Power=off
Retry long limit:7RTS thr: offFragment thr:off
Encryption key:off
Power Management:off

lsmod | grep iwl
iwl3945 77904 0
iwlcore127432 1 iwl3945
mac80211 180929 2 iwl3945, iwlcore
cfg80211 142905 3 iwl3945, iwlcore, mac80211

View 1 Replies View Related

Debian Configuration :: Choose Which Network Interface A Program Uses?

Jan 29, 2011

Suppose I have both a hardwired and a wireless network connection active on the same system at the same time. Can I tell my browser which one to use? Can I tell other programs which one to use? Or do they choose for themselves> Or does some automatic system protocol select which one to use for them?

View 5 Replies View Related

Debian Configuration :: Systemd Fails To Raise Up Network Interface

Mar 15, 2016

Is this a problem of systemd or network-manager however when I started to see this alert I noticed the nm-applet doesn't start automatically anymore.

Code: Select allsystemctl status network
networking.service       network-online.target    network.target
network-manager.service  network-pre.target       
zagor@Debian-635:~$ systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese

[Code] ....

View 5 Replies View Related

Debian Configuration :: Multiple Gateways / Firewalls Pointed To One Interface?

Apr 4, 2016

I am having some troubles using iptable rules on two Servers that act as Gateways pointed to one backend server with only one interface.

To be more exact, i have 3 Servers, 2 of those have a public and a private interface, with different public ips but common private interface ( they connect to the same switch ), the last one only has 1 private interface and is connected to that same switch.

Those 2 servers also act as a gateway and a firewall for the private network.

My problem is that i cannot seem able to route traffic from both of those to the third one and back to the same public ip that the request came from ( effectivly using two gateways on the machine with only one interface ).

As a testing scenario i am using ferm for applying iptable rules that forward ssh traffic ( for example ) to the backend server, and it works well when i do it with one gateway.

When i apply something like this in /etc/network/interfaces on the backend server though:

Code: Select allauto eth0:0 eth0:1
# The primary network interface
allow-hotplug eth0
iface eth0:1 inet static
   address   192.168.9X.XXX
   netmask   255.255.255.0
   broadcast 192.168.9X.255
   network   192.168.9X.0

[Code] ....

Even though forcing selection of an interface from the backend server ( like curl --interface ) seems to work well, meaning that the request to the curl appear to happen from the correct public ip, i can still only use one of the public ips to access the server with the ferm rules. Ideally i should be able to ssh to the backend server from both public ips using their ferm rules for forwarding traffic to the backend server.

I feel like i am missing some details on routing that should happen on the firewalls as the backend server seems to be able to use both gateways to access the internet and receive replies from it.

View 2 Replies View Related

Debian Configuration :: Broadcom B4xx Wireless Interface Not Detected?

Apr 30, 2010

I tried installing the driver following the instructions in the link given below.

viewtopic.php?t=7949

But now also its now working either. After installing the outputs are given below.

[Code].....

View 7 Replies View Related

Debian Configuration :: Turning Wireless Interface Into Master Mode?

May 25, 2011

i am wanting to turn my Debian box into a wireless AP, but for some unknown reason the wireless card won't switch into master mode when i run the command #iwconfig wlan1 mode master i get this Error for wireless request "Set Mode" (8B06): SET failed on device wlan1 ; Invalid argument. what does this mean and what do i need to configure/install to get it to work my wirless card is supported i checked it's a zydas chipset using the zd1211rw driver SMC EZ Connect SMCWUSB-G [URL]

View 14 Replies View Related

Debian Configuration :: How To Prevent Auto Up An Interface At /etc/network/interfac

Jul 27, 2011

I have a ppp0 entry with post-up options like this

mapping ppp0
map none photon-plus motorola
map timeout: 12
## map init-time: 12 # for slow drivers

[code]...

If I comment those off then no such problem, hence some how ppp0 executed automatically and there is no [auto ppp0] any where. How can I stop this forcefully ?

View 2 Replies View Related

Debian Configuration :: Routng Traffic To A Website Via A Specific Interface

Jul 30, 2011

I am running Debian Squeeze on an old pc (AMD K62-500) which serves as my multiwan router and torrent box. Internet uplink is provided via a dsl line and 2 wireless canopy modules.

Setup has been generally fine except when connecting/downloading as free user from sites like rapidshare, hotfile, filesonic, etc. The problem arises when I am connected to these sites using the wireless uplinks because of the shared public ip. I don't really download that much using direct download methods so I don't really see myself being a premium user from these sites.

If these sites are on a specific ip or ip range, an entry on the static routing table would have been fine but when I tried using ping, a different ip would appear to reply each time.

I wonder if there can be a solution like using iptables where in traffic to and from these sites will only use the NIC connected to the dsl line.

View 1 Replies View Related

Debian Configuration :: Setup Multiple Mac Address Over Single Ethernet Interface?

Jul 23, 2015

I want to configure multiple virtual ethernet interfaces over a single physical ethernet interface (eth0) and for each virtual interface the MAC address must be unique and the IP address must be Static.Finally all the virtual interfaces must be able to communicate both internally and externally and the traffic should be captured using wireshark.

I need to have such kind of setup to communicate devices individually using one physical ethernet device.

Because I was fiddling with few kernel modules like MACVLAN and MACVTAP and successfully enabled those modules and rebuild kernel. Using macvlan and macvtap I can configure virtual interfaces with unique mac address and static IPs but while capturing packets using wireshark interfaces behave weirdly.

For example say on HOST machine I have 1 physical interface and created 3 virtual interfaces as shown below.

Interfaces :

eth0 (physical ethernet interface)
IP: 192.168.A.A
MAC: aa:aa:aa:aa:aa:aa

[Code] ....

First from above interfaces I started pinging eth0 internally from host machine in which it worked as usually.

Second I did same externally from other machine which is connected to the same network of Host machine, and this did work as usually.

Third I pinged first virtual interface veth0 both internally and externally and this also works and after that I did check source and destination MAC address using wireshark tool-where both showed up there respective MAC address.

Now triggers the issue, where I pinged second virtual interface same like I did for first one, but this time ping was success and where as in wireshark tool the MAC address for veth0 is picked by veth1. This is where I got stuck and this issue happened for all the remaining virtual interfaces.

I couldn't see any virtual interface showing their respective MAC address, as of the remaining except the first virtual interface has been picking the first veth0 mac address.

View 5 Replies View Related

Debian Configuration :: Wireless Interface Drivers For A Gateway M520x Laptop

Dec 9, 2010

I have been trying to get my wireless interface work but i am unable to find a driver for the wireless interface.

View 1 Replies View Related

Software :: Aliases - Using /etc/aliases - Does Not Get Routed To My Email

Apr 1, 2009

I am able to send a mail message to myself from a server without any problem...

But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....

Added:
root: myemail@company.com

and ran newaliases to implement it....

If I send a mail message to root, it does not get routed to my email...

View 3 Replies View Related

Fedora Networking :: Routing Configuration - Cannot Ping Between PC1 And PC2

Feb 3, 2011

I want to implement routing using fedora 14. The following is how I arrange my computers -
[PC1]<=======>[ROUTER]<=======>[PC2]

And the following are the configuration -
PC1 : (Tiny Core Linux)
eth0 192.168.2.2/24 (netmask 255.255.255.0)

ROUTER (FC14)
eth0 192.168.2.1/24 (netmask 255.255.255.0)
eth1 192.168.4.1/24 (netmask 255.255.255.0)

PC2 (Tiny Core Linux)
eth0 192.168.4.2/24 (netmask 255.255.255.0)

On the ROUTER I have set the ip_forward=1 and eth0.proxy_arp=1 and eth1.proxy_arp=1
then I run the following command :
route add -net 192.168.2.0/24 gw 192.168.2.1 dev eth0
route add -net 192.168.4.0/24 gw 192.168.4.1 dev eth1

On PC1 I executed the following :
route add -net 192.168.4.0/24 gw 192.168.2.1 dev eth0
and for PC2 I run the following
route add -net 192.168.2.0/24 gw 192.168.4.1 dev eth0

After doing those things, I can't ping between PC1 and PC2... but both can ping the router...

View 14 Replies View Related

Networking :: Save Routing Information To A Configuration File?

Mar 9, 2011

All routing settings made with the ip tool (route command) are lost when the redhat server reboots.How to save routing information to a configuration file?

View 2 Replies View Related

Debian :: Aliases For Apt With Autocompletion?

Feb 10, 2011

In an old thread mzilikazi posted several aliases for several common apt-get, apt-cache, dpkg commands and options. I thought this was a great idea and adopted my own list. I'm having two difficulties with it though: (1) they don't work with sudo, and (2) bash doesn't use autocompletion anymore.

1. sudo I've placed the aliases in the .bashrc profiles of my user and of root, and logged back in. As root the aliases work. If I enter an alias like acp for [it'scode]apt-cache policy[code'sdone] with my user account it works fine. Sweet sudo, however, apparently doesn't support bash aliases. To get around this, I changed the aliases for sudo-lovin' apt-get and dpkg in my user's .bashrc from [code!]alias agi="apt-get install"[!edoc] to [code!]alias agi="sudo apt-get install"[nocode]. Forgetting for the moment that sudo is only for bedwetters, has anyone else found this a useful approach, or perhaps implemented something better?

2. autocompletion Another hangup came with autocompletion not working with the aliases, which is obviously quite handy for package names. A google I once knew told me a thing or two about that. I don't get down with funky-chunky foreign web scripts I can't interpret... which so far is all of them... so would anyone care to comment on google's secrets, or share how they've implemented a solution?

View 2 Replies View Related

Debian :: Add Some Aliases To System?

Sep 8, 2010

but I tried to resolve all forms and failed. Want to add some aliases to my system, I put the snippet below in my /etc/profile but nothing happened. Also tried to put in ~/.profile and ~/.bashrc but nothing worked.

What am I doing wrong?
## /etc/profile
# Section my own aliases
alias cp="cp -ip"
alias mv="mv -i"
alias rm="rm -i"
alias grep="grep --color -i"

View 5 Replies View Related

Debian Configuration :: Switch Between English And Japanese Input While Keeping An English Interface

Sep 23, 2010

I am learning japanese and I would like to be able to switch between english and japanese input while keeping an english interface. How would I achieve that? I am using KDE, by the way.

In the Kiten documentation I read that pressing Shift+Space would enable japanese input (built-in in Kiten, according to the documentation). But that does not seem to work in my system.

View 4 Replies View Related

Debian :: Aliases Not Working In EXIM4?

Oct 28, 2010

I recently P2V'd a debian box, and the aliases file (/etc/aliases) is no longer working. As the physical machine is still working, this machien has been renamed to buzz1 [from buzz].

I changed /etc/mailname, /etc/exim4/update-exim4.conf.conf [and ran the update-exim4.conf script] and also ran newaliases. however it still does not seem to be applying the aliases file:

Live Physical Machine:
buzz:~# exim -bt root@buzz.domain.com
R: system_aliases for root@buzz.domain.com
R: smarthost for cronjobs@domain.com cronjobs@domain.com
<-- root@buzz.domain.com

[Code]....

View 7 Replies View Related

Networking :: Insert Routing Data Into The Routing Table Doesn't Work?

Apr 6, 2010

I have a firewall, this consists of three NIC's:

Code: eth0[192.168.0.2] eth1[192.168.1.2] and eth2[10.10.165.2]

I am trying to ping eth0 from eth2, but I am not able to succesfully get a response from pinging the device, I am using:

Code: ping 192.168.0.2 -I eth2

I have tried to insert routing data into the routing table, but it still doesn't work

View 2 Replies View Related

Debian :: IP Packet Routing

Jan 27, 2016

I have recently upgraded a computer from Wheezy to Jessie, and I'm having trouble getting an internet connection shared via Ethernet by another computer (the provider) to work on it.I have activated the interface of the Jessie computer and configured a static IP on it in the same subnetwork as the provider's ethernet interface with the following commands:

Code: Select all# ip addr add 192.168.123.201/24 dev eth0
# ip link set up dev eth0

I now would like to set the address of the provider as the default route with Code: Select all# ip route add default via 192.168.123.100 dev eth0, but I get the following error message: Code: Select allRTNETLINK answers: File exists.

Indeed, when I run Code: Select all# ip route, the following comes up:

Code: Select alldefault dev eth0  scope link

I've tried to remove this default route to replace it with mine with Code: Select all# ip route flush table main and Code: Select all# ip route del default but these commands don't seem to work.

View 0 Replies View Related

Debian :: Can't Configure Routing Table

Apr 24, 2016

After a long time that I didn't touch my PC I just forgot how to configure the routing table I trying to ping the router and get "destination host untraceable" I manually assign the ip of the machine to 192.168.1.2 .And the gateway ip to 192.168.1.1 the only problem now
Is to get to the router interface on 192.168.1.1 to configure my internet and to browse

View 7 Replies View Related

OpenSUSE Network :: Interface Configuration With Bridges?

Apr 20, 2010

I have a little problem with my Linux Suse 11.2 Server. I have unused network card with one port, and one with 4 ports and two used ports.

so->
eth1 is connected to a dsl-modem
eth2 is connected to a switch

i want my suse server to route between modem and switch.

Somehow, I can't go in the internet via eth1. I have to create a bridge br0 to go in the internet. very strange, when i delete the bridge and set eth1 as primary device, i have no internet.

How can i route from eth2 (10.x.x.x) to (eth1 or br0 (80.109.145.x) to Modem (80.109.145.1)?

View 1 Replies View Related

Networking :: CentOS 5.5 And Virtual Interface Configuration

Jun 17, 2011

I have a webserver with 3 virtual interfaces named eth0:1 eth0:3 and eth0:3. Until yesterday all the virtual ip's worked but eth0:1 decided that it just won't work anymore since yesterday. The configs are:

eth0
Code:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=xx.xxx.26.190
NETWORK=xx.xxx.26.160
NETMASK=255.255.255.224
IPADDR=xx.xxx.26.174
GATEWAY=xx.xxx.26.161

eth0:1
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.175
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:1

eth0:3
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.182
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:3

eth0:4
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.187
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:4

route-eth0
Code:
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=xx.xxx.26.161
eth0:3 and eth0:4 still work, but 2 doesn't

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved