Port activity after applying iptablesPackets getting dropped after clearing rp_filterubuntu: virtual box,...
Eww, those bytes are gross
Is using an 'empty' metaphor considered bad style?
Cat is tipping over bed-side lamps during the night
A curious equality of integrals involving the prime counting function?
What would you call a real market that is close to perfect competition?
Ellipses aligned on the same boundary point
How would an AI self awareness kill switch work?
Would tunnel walls be stronger if built using cut granite block walls reinforced with carbon based cords?
How does Leonard in "Memento" remember reading and writing?
What is the difference between rolling more dice versus fewer dice?
How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?
A Missing Symbol for This Logo
How do you voice extended chords?
How does one write from a minority culture? A question on cultural references
Python Pandas - difference between 'loc' and 'where'?
Has any human ever had the choice to leave Earth permanently?
Globe trotting Grandpa. Where is he going next?
Has Britain negotiated with any other countries outside the EU in preparation for the exit?
Why do neural networks need so many training examples to perform?
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
Why would space fleets be aligned?
Why are all my replica super soldiers young adults or old teenagers?
Play Zip, Zap, Zop
Potential client has a problematic employee I can't work with
Port activity after applying iptables
Packets getting dropped after clearing rp_filterubuntu: virtual box, host can only ping guest, cannot access outside worldExternal access to Ubuntu single-node openstack horizon dashboardMasquerade over USB Ethernet ProblemUbuntu 16.04. Iptables on postrouting do not recognize docker0 bridgeCannot ssh remotely into Ubuntu 14.04 Desktop (connection refused)How to set Firebird 3.0 on Ubuntu 14.04 remote connectForward FTP to another ServerTor Browser Bundle/Tor and IPTables: Seeking a Working Setuphow to redirect and load balance locally generated packets through iptables
I've applied a rule in the iptables
(Ubuntu x64 18)
sudo iptables -t nat -A OUTPUT -p tcp --dport 64080 -d 172.31.132.86 -j DNAT --to-destination 149.154.167.50:80
sudo iptables -t nat -v -L OUTPUT -n --line-number
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 57677 3785K DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
2 79 4740 DNAT tcp -- * * 0.0.0.0/0 172.31.132.86 tcp dpt:64080 to:149.154.167.50:80
The question is that I don't understand should I see any activity on my local port or not?
sudo ngrep -W byline -d any port 64080 -q
or
sudo tcpdump port 64080
Nothing happens when I do:
wget 172.31.132.86:64080
--2019-02-27 11:42:11-- http://172.31.132.86:64080/
Connecting to 172.31.132.86:64080... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-02-27 11:42:11 ERROR 404: Not Found.
networking iptables routing
add a comment |
I've applied a rule in the iptables
(Ubuntu x64 18)
sudo iptables -t nat -A OUTPUT -p tcp --dport 64080 -d 172.31.132.86 -j DNAT --to-destination 149.154.167.50:80
sudo iptables -t nat -v -L OUTPUT -n --line-number
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 57677 3785K DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
2 79 4740 DNAT tcp -- * * 0.0.0.0/0 172.31.132.86 tcp dpt:64080 to:149.154.167.50:80
The question is that I don't understand should I see any activity on my local port or not?
sudo ngrep -W byline -d any port 64080 -q
or
sudo tcpdump port 64080
Nothing happens when I do:
wget 172.31.132.86:64080
--2019-02-27 11:42:11-- http://172.31.132.86:64080/
Connecting to 172.31.132.86:64080... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-02-27 11:42:11 ERROR 404: Not Found.
networking iptables routing
add a comment |
I've applied a rule in the iptables
(Ubuntu x64 18)
sudo iptables -t nat -A OUTPUT -p tcp --dport 64080 -d 172.31.132.86 -j DNAT --to-destination 149.154.167.50:80
sudo iptables -t nat -v -L OUTPUT -n --line-number
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 57677 3785K DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
2 79 4740 DNAT tcp -- * * 0.0.0.0/0 172.31.132.86 tcp dpt:64080 to:149.154.167.50:80
The question is that I don't understand should I see any activity on my local port or not?
sudo ngrep -W byline -d any port 64080 -q
or
sudo tcpdump port 64080
Nothing happens when I do:
wget 172.31.132.86:64080
--2019-02-27 11:42:11-- http://172.31.132.86:64080/
Connecting to 172.31.132.86:64080... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-02-27 11:42:11 ERROR 404: Not Found.
networking iptables routing
I've applied a rule in the iptables
(Ubuntu x64 18)
sudo iptables -t nat -A OUTPUT -p tcp --dport 64080 -d 172.31.132.86 -j DNAT --to-destination 149.154.167.50:80
sudo iptables -t nat -v -L OUTPUT -n --line-number
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 57677 3785K DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
2 79 4740 DNAT tcp -- * * 0.0.0.0/0 172.31.132.86 tcp dpt:64080 to:149.154.167.50:80
The question is that I don't understand should I see any activity on my local port or not?
sudo ngrep -W byline -d any port 64080 -q
or
sudo tcpdump port 64080
Nothing happens when I do:
wget 172.31.132.86:64080
--2019-02-27 11:42:11-- http://172.31.132.86:64080/
Connecting to 172.31.132.86:64080... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-02-27 11:42:11 ERROR 404: Not Found.
networking iptables routing
networking iptables routing
asked 8 mins ago
IgorZIgorZ
1114
1114
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
});
}
});
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%2f1121654%2fport-activity-after-applying-iptables%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
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%2f1121654%2fport-activity-after-applying-iptables%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