How to drop dns packet in nat?iptables sharing internet connection with restricted accessWebmin Port...
What is the industry term for house wiring diagrams?
Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?
How to create a label containing values from different layers in QGIS
Potential client has a problematic employee I can't work with
Renting a 2CV in France
Does diversity provide anything that meritocracy does not?
How is this property called for mod?
What are some ways of extending a description of a scenery?
Lightning Data Table inline edit
What is the wife of a henpecked husband called?
What makes papers publishable in top-tier journals?
Is the fingering of thirds flexible or do I have to follow the rules?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
How much light is too much?
How vim overwrites readonly mode?
Converting very wide logos to square formats
Translation needed for 130 years old church document
Can my friend and I spend the summer in Canada (6 weeks) at 16 years old without an adult?
What can I do to encourage my players to use their consumables?
What senses are available to a corpse subjected to a Speak with Dead spell?
Single-row INSERT...SELECT much slower than separate SELECT
Is there any advantage in specifying './' in a for loop using a glob?
What natural barriers could help when running away from a lightning elemental?
Stuck on a Geometry Puzzle
How to drop dns packet in nat?
iptables sharing internet connection with restricted accessWebmin Port ForwardingHow to use my ubuntu server as router?Resolve domain names to IP's based on physical adapterForwarding traffic with IPtables through a series of IDSSharing connection - IPTABLESUbuntu: VPN kills NATubuntu iptables NAT & Router & Port ForwardingStuck on “Setting up VPN Linux Tutorial”: replace “eth0” with the internet connection from serverBlock DNS traffic except for 1 device
My conputer with ubuntu share internet connection with NAT (internet eth0, ip 1.2.3.4 and LAN eth2, ip 192.168.0.1/16).
I want to use my own dnsmasq service on this ubuntu and deny all requests to other dns servers in internet from LAN.
How can i configure this in iptables?
Now my iptables allow all from all and masquerade traffic from eth2 to eth0 (internet).
iptables
New contributor
Alexey 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 |
My conputer with ubuntu share internet connection with NAT (internet eth0, ip 1.2.3.4 and LAN eth2, ip 192.168.0.1/16).
I want to use my own dnsmasq service on this ubuntu and deny all requests to other dns servers in internet from LAN.
How can i configure this in iptables?
Now my iptables allow all from all and masquerade traffic from eth2 to eth0 (internet).
iptables
New contributor
Alexey 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 |
My conputer with ubuntu share internet connection with NAT (internet eth0, ip 1.2.3.4 and LAN eth2, ip 192.168.0.1/16).
I want to use my own dnsmasq service on this ubuntu and deny all requests to other dns servers in internet from LAN.
How can i configure this in iptables?
Now my iptables allow all from all and masquerade traffic from eth2 to eth0 (internet).
iptables
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
My conputer with ubuntu share internet connection with NAT (internet eth0, ip 1.2.3.4 and LAN eth2, ip 192.168.0.1/16).
I want to use my own dnsmasq service on this ubuntu and deny all requests to other dns servers in internet from LAN.
How can i configure this in iptables?
Now my iptables allow all from all and masquerade traffic from eth2 to eth0 (internet).
iptables
iptables
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 5 hours ago
AlexeyAlexey
12
12
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alexey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Alexey 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 |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
Alexey 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%2faskubuntu.com%2fquestions%2f1121136%2fhow-to-drop-dns-packet-in-nat%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
Alexey is a new contributor. Be nice, and check out our Code of Conduct.
Alexey is a new contributor. Be nice, and check out our Code of Conduct.
Alexey is a new contributor. Be nice, and check out our Code of Conduct.
Alexey is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1121136%2fhow-to-drop-dns-packet-in-nat%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