Two network interfaces, can't access to public one from internal network Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!Routing doesn't working in linuxUse specific interface for outbound connections (Ubuntu 9.04)Two network interfaces and two IP addresses on the same subnet in LinuxI can't access my public IP from local networklinux route 2nd internal networkUbuntu 12.04 as router with 2 nicRoute traffic through private IP for only certain hosts - CentOS 6.6How to configure dual homed server in order for both network segments to communicate?OpenVPN bridged mode, cant access private networkHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?How do I forward/NAT/route all traffic to one phyiscal interface/IP to Virtual interface/IP
Are variable time comparisons always a security risk in cryptography code?
IndentationError when pasting code in Python 3 interpreter mode
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Alternate inner products on Euclidean space?
Does polymorph use a PC’s CR or its level?
How is the internal pullup resistor in a microcontroller wired?
What does '1 unit of lemon juice' mean in a grandma's drink recipe?
Is there a way in Ruby to make just any one out of many keyword arguments required?
What would be the ideal power source for a cybernetic eye?
Is the Standard Deduction better than Itemized when both are the same amount?
Do I really need recursive chmod to restrict access to a folder?
3 doors, three guards, one stone
How was the dust limit of 546 satoshis was chosen? Why not 550 satoshis?
What are the motives behind Cersei's orders given to Bronn?
Why is black pepper both grey and black?
Is high blood pressure ever a symptom attributable solely to dehydration?
Precipitating silver(I) salts from the solution of barium(II) cyanate and iodide
What's the purpose of writing one's academic bio in 3rd person?
Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?
How can I fade player when goes inside or outside of the area?
What do you call a plan that's an alternative plan in case your initial plan fails?
How can players work together to take actions that are otherwise impossible?
What happens to sewage if there is no river near by?
Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?
Two network interfaces, can't access to public one from internal network
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Routing doesn't working in linuxUse specific interface for outbound connections (Ubuntu 9.04)Two network interfaces and two IP addresses on the same subnet in LinuxI can't access my public IP from local networklinux route 2nd internal networkUbuntu 12.04 as router with 2 nicRoute traffic through private IP for only certain hosts - CentOS 6.6How to configure dual homed server in order for both network segments to communicate?OpenVPN bridged mode, cant access private networkHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?How do I forward/NAT/route all traffic to one phyiscal interface/IP to Virtual interface/IP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a server with two network cards:
- eth0 -> public static ip
- eth1 -> local network dhcp
Both cards are connected to the same modem.
If I enable only eth0, I can access from local network (and from internet) using its subdomain or public ip.
If I connect also eth1, I can access from local network only using internal ip, and from internet (obviusly) using only public ip / subdomain.
How can I access this machine from public ip also from other machines on local network with eth1 enabled?
Edit: I have no gateway on second interface, and ip_forward is already enabled.
Here the config:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.248
nameserver 8.8.8.8
gateway x.x.x.y
auto eth1
iface eth1 inet dhcp
routing ip ethernet
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a server with two network cards:
- eth0 -> public static ip
- eth1 -> local network dhcp
Both cards are connected to the same modem.
If I enable only eth0, I can access from local network (and from internet) using its subdomain or public ip.
If I connect also eth1, I can access from local network only using internal ip, and from internet (obviusly) using only public ip / subdomain.
How can I access this machine from public ip also from other machines on local network with eth1 enabled?
Edit: I have no gateway on second interface, and ip_forward is already enabled.
Here the config:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.248
nameserver 8.8.8.8
gateway x.x.x.y
auto eth1
iface eth1 inet dhcp
routing ip ethernet
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07
add a comment |
I have a server with two network cards:
- eth0 -> public static ip
- eth1 -> local network dhcp
Both cards are connected to the same modem.
If I enable only eth0, I can access from local network (and from internet) using its subdomain or public ip.
If I connect also eth1, I can access from local network only using internal ip, and from internet (obviusly) using only public ip / subdomain.
How can I access this machine from public ip also from other machines on local network with eth1 enabled?
Edit: I have no gateway on second interface, and ip_forward is already enabled.
Here the config:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.248
nameserver 8.8.8.8
gateway x.x.x.y
auto eth1
iface eth1 inet dhcp
routing ip ethernet
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a server with two network cards:
- eth0 -> public static ip
- eth1 -> local network dhcp
Both cards are connected to the same modem.
If I enable only eth0, I can access from local network (and from internet) using its subdomain or public ip.
If I connect also eth1, I can access from local network only using internal ip, and from internet (obviusly) using only public ip / subdomain.
How can I access this machine from public ip also from other machines on local network with eth1 enabled?
Edit: I have no gateway on second interface, and ip_forward is already enabled.
Here the config:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask 255.255.255.248
nameserver 8.8.8.8
gateway x.x.x.y
auto eth1
iface eth1 inet dhcp
routing ip ethernet
routing ip ethernet
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Apr 11 at 10:37
user1365836
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 10 at 13:02
user1365836user1365836
62
62
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
user1365836 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07
add a comment |
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
user1365836 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962421%2ftwo-network-interfaces-cant-access-to-public-one-from-internal-network%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
user1365836 is a new contributor. Be nice, and check out our Code of Conduct.
user1365836 is a new contributor. Be nice, and check out our Code of Conduct.
user1365836 is a new contributor. Be nice, and check out our Code of Conduct.
user1365836 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962421%2ftwo-network-interfaces-cant-access-to-public-one-from-internal-network%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Routing doesn't working in linux
– kubanczyk
Apr 10 at 20:46
I added some extra infos. It doesn't seem the same problem.
– user1365836
Apr 11 at 10:38
It's not clear what your goal is. Do you want local and Internet users to reach via public IP?
– Ron Trunk
Apr 11 at 12:49
If i ping public ip set on eth0, it doesn't work (from local network, it works from outside). If I disable eth1 I can ping it. Of course I want to reach public ip from local network too.
– user1365836
Apr 11 at 13:04
Can you edit your question to include a diagram of your network? There may be other ways of solving this problem.
– Ron Trunk
Apr 11 at 13:07